Conversion to 'sym' from 'inline' is not possible.

4 次查看(过去 30 天)
When i try to set the array of functions F(I)
for I=1:4
B = A(I)
F(I) = inline(B)
end
where A is a symbolic matrix, Matlab shows up the error mesage Conversion to 'sym' from 'inline' is not possible. How can i fix it?

回答(1 个)

Walter Roberson
Walter Roberson 2013-1-17
Don't try to convert from sym to inline. Also, do not try to store multiple functions as elements F(I)
for I = 1 : 4
F{I} = matlabFunction(A(I));
end

类别

Help CenterFile Exchange 中查找有关 Function Creation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by