May 4, 2007 #1 danielp0 Bioengineer Joined Jul 4, 2005 Messages 7 Location CA does anyone know of a quick way that I can smooth a line graph ? thanks
May 8, 2007 #2 SomptingGuy Automotive Joined May 25, 2005 Messages 8,922 Location GB You could low-pass filter it. Matlab has many filter design tools, but a simple moving average is often enough: b=ones(1,n)/n; smoothed=filter(b,1,rough); n is the length of your moving average window. Upvote 0 Downvote
You could low-pass filter it. Matlab has many filter design tools, but a simple moving average is often enough: b=ones(1,n)/n; smoothed=filter(b,1,rough); n is the length of your moving average window.
May 8, 2007 Thread starter #3 danielp0 Bioengineer Joined Jul 4, 2005 Messages 7 Location CA This seems to work fine, thanks. I was looking into using mean, but this is quicker. the only thing I found is that it shifts the data a bit. but that's not really a problem. Thanks Upvote 0 Downvote
This seems to work fine, thanks. I was looking into using mean, but this is quicker. the only thing I found is that it shifts the data a bit. but that's not really a problem. Thanks