Simulating data smoothing on a 2D matrix. New to Octave/Matlab platforms

Nuno Santos nsantos at edigma.com
Wed Jul 1 04:48:03 CDT 2009


Søren Hauberg wrote:
> tir, 30 06 2009 kl. 17:37 +0100, skrev Nuno Santos:
>   
>> First I would like to see the 2D matrix drawn on a 3D graphic, where 
>> each value of the 2D matrix is a Z value on the 3D graphic.
>>     
>
> Try the 'mesh' or 'surf' functions for such plots. For larger matrices,
> you might consider just showing them as an image using 'imshow'. This
> can be much faster, and it often provides a better overview.
>   
To draw using the mesh function I need 3 matrixes. The things is that I 
only have one matrix and so, I need two other matrixes for X and Y to 
make the Z have the point in the right place.

Isn't there a direct form of doing this? Or isn't there a way of 
generating the other two matrixes automaticly?

>   
>> Then I would like to apply several smoothing function (and if anyone 
>> could point me some functions), to the data in order to visually see the 
>> results.
>>     
I was looking for function to smooth noise variations from direct ADC 
readings. I have found savgol filters on the internet so I was wondering 
if octave had some similar filters
> Well, 'smoothing' can mean quite a lot of different things. You might
> want to look into the 'imsmooth' function in the 'image' package from
> Octave-Forge.
>
> Søren
>
>   


More information about the Help-octave mailing list