How to assign design variables?

2 次查看(过去 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 个评论
Jan
Jan 2022-3-2
What are "design variables a,b,c,d"? Do you mean symbolic variables?
Danishtah Quamar
Danishtah Quamar 2022-3-7
Yes x(1)=a % length
x(2)=b % width
and so on

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2022-3-7
See matlabFunction option 'vars' with the {} approach
matlabFunction(EXPRESSION, 'vars', {[a, b, c, d] })

类别

Help CenterFile Exchange 中查找有关 Classical Control Design 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by