如何给出多个向量作为polyfit()函数的输入?
23 views (last 30 days)
Show older comments
I have a 27x3 matrix of three input variables and one corresponding vector(27x1) as output. I want a polynomial regression equation relating the inputs and the output. The polyfit function gives the following error when given the command: polyfit(input, output, 3)
Error using polyfit (line 48) X and Y vectors must be the same size.
I am new to matlab and so please bear with the noob question. If I am using the wrong function, please let me know the correct procedure for the same.
Thanks in advance,
Accepted Answer
More Answers (0)
See Also
s manbetx 845
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
开始狩猎!