Update logdemo.m