sftool with X and Y axis of not the same lengths

2 views (last 30 days)
Hi all, I am new to sftool. i have x=1:14 and y=1:16. In addition i have the measured data z (14x16). 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.

Accepted Answer

othmane
othmane on 24 Feb 2014
i had just to generate X and Y axis using meshgrid and it works!

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!