I'm trying to simplify an expression or equation symbolically and I get the same error every time. Undefined function or variable 'x'.
Ältere Kommentare anzeigen
I'm trying to simplify an expression symbolically and I get the same error every time.
Undefined function or variable 'x'.
I'm even using the actual example matlab provides. Trying to just simplify the expression sin(x)^2 + cos(x)^2 I get the error everytime. I'm brand new...what am I missing.
Akzeptierte Antwort
Weitere Antworten (1)
Bala Abhirami
am 25 Mai 2021
Bearbeitet: Bala Abhirami
am 25 Mai 2021
0 Stimmen
The function u[1]/(u[2]^0.5) shows the error "result of the function is undefined" in matlab simulink user defined function. What could be the reason?
1 Kommentar
Walter Roberson
am 25 Mai 2021
Simulink uses MATLAB indexing syntax, so you need () instead of []
u(1)/(u(2)^0.5)
You might be able to use
u(1)/sqrt(u(2))
Kategorien
Mehr zu Common Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!