MATLAB: Sftool with X and Y axis of not the same lengths

sftool

Hi all, I am new to sftool. i have x=1:14 and y=1:16. In addition i have the measured data z (14×16). I am trying to model the behavior of z as function of x and y. I tried sftool but i always get this error :X, Y and Z must be the same length.
x, y and z are set as columns z=z(:) x=x(:) and y=y(:).
I don't what to do!!
Thank you for you help in advance.

Best Answer

i had just to generate X and Y axis using meshgrid and it works!
Related Question