kash787
Newbie level 4
rational curve fit matlab
Hi friends,
I have hit a brick wall while working with the least square curve fitting function "lsqcurvefit". I am getting an error which I dont have a clue what it means. The error reads "Function value and YDATA sizes are incommensurate".
Does anyone have some idea on how to avoid this. I am in desperate need of some help on curve fitting. I have a function z which is complex and is dependant on two variables x and y which are also complex. In the rational function equation I have some real coefficients as well which I need to determine. I have z, x and y and want to write a small program which would let me compute the various coefficients of the rational function.
I would appreciate it if someone could send me a relavant example or suggestion.
Thanks,
Kash.
Hi friends,
I have hit a brick wall while working with the least square curve fitting function "lsqcurvefit". I am getting an error which I dont have a clue what it means. The error reads "Function value and YDATA sizes are incommensurate".
Does anyone have some idea on how to avoid this. I am in desperate need of some help on curve fitting. I have a function z which is complex and is dependant on two variables x and y which are also complex. In the rational function equation I have some real coefficients as well which I need to determine. I have z, x and y and want to write a small program which would let me compute the various coefficients of the rational function.
I would appreciate it if someone could send me a relavant example or suggestion.
Thanks,
Kash.