How to assign design variables?
1 回表示 (過去 30 日間)
古いコメントを表示
How to assign design variable in matlab coding and call it in mathematical function .
Example:- I have to make a function with variables x and x containing design variable a,b,c,d
And I have to call it in equation in the same function in a way
sigma = 5.04e5./(x(:,3).^2.*x(:,4));
then how to do it.
2 件のコメント
回答 (1 件)
Walter Roberson
2022 年 3 月 7 日
See matlabFunction option 'vars' with the {} approach
matlabFunction(EXPRESSION, 'vars', {[a, b, c, d] })
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Classical Control Design についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!