I'm trying to simplify an expression or equation symbolically and I get the same error every time. Undefined function or variable 'x'.
이전 댓글 표시
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.
채택된 답변
추가 답변 (1개)
Bala Abhirami
2021년 5월 25일
편집: Bala Abhirami
2021년 5월 25일
0 개 추천
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
Walter Roberson
2021년 5월 25일
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))
카테고리
도움말 센터 및 File Exchange에서 Common Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!