ans = 
syms to another .m file
古いコメントを表示
How do you export your syms equation to a new/different .m file to be able to use the equation with parameters.
採用された回答
その他の回答 (1 件)
Call the other .m-file with the syms-equation (or function) as input argument.
syms x
f = x.^2;
result = fun(f)
function result = fun(f)
syms x
result = subs(f,x,2);
end
カテゴリ
ヘルプ センター および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
