Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to use command numeric::leastSquares in matlab 2012b

1 次查看(过去 30 天)
Hi,
I got some difficulty in using numeric::leastSquares in matlab 2012b, when I type the command into the window, it just pump out an error: Error: Unexpected MATLAB operator. I check it for a long time but can't find a way to fix it. Please help me. Thank you so much.

回答(1 个)

Walter Roberson
Walter Roberson 2013-3-24
numeric::leastsquares is not a MATLAB operation: it is a MuPAD operation, and needs to be run inside of MuPAD.
A=data(1:11,1:11)';
B=data(1:11,2:12)';
feval(symengine, 'numeric::leastSquares', A, B)

Community Treasure Hunt

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

Start Hunting!

Translated by