Create logdemo.m