How to choose certain variables from many, defined by matlabFunction?

조회 수: 4 (최근 30일)
Ivan
Ivan 2019년 10월 28일
답변: Harsha Priya Daggubati 2019년 11월 6일
Hi,
I have converted the expression defined in a symbolic way to matlab function using matlabFunction
I have got the following @(E0,R,e0,ei,er,es,ew,kn,x,x0,y,y0,z,z0)....
I would like to set only x,y,z as a variable and rest ones assign as scalar constants. How can I do that?
Thx!!!

답변 (1개)

Harsha Priya Daggubati
Harsha Priya Daggubati 2019년 11월 6일
Hi,
I guess there is no such feature available with matlabFunction, possible work around would be to manually give the scalar values in symbolic equation and give it as input to matlabFunction. Refer to the documentation for more details:

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by