MATLAB Answers

rearrange an equation in simulink

조회 수: 1(최근 30일)
Pablo Sevilla
Pablo Sevilla 2021년 9월 7일
댓글: Pablo Sevilla 2021년 9월 8일
I have the following equation modelled in simulink:
y=D·sin(C·arctan(B·x -E·(B·x - arctan(B·x))))
where x is the input variable and B,C,D and E are constants. So I can obtain the y value for any x input.
Lets say I want the other way around, puting an y value as input and get x value. Is there any easy way to do that? or do I need to do all the math to get x=f(y) and create another model?
Thank you!

답변(2개)

Paul
Paul 2021년 9월 7일
I'm not necessarily recommending this, but since you asked you can try an Algegbraic Constraint block.
  댓글 수: 1
Pablo Sevilla
Pablo Sevilla 2021년 9월 8일
It worked!
The Algebraic Constraint block did the trick!
Thank you!

댓글을 달려면 로그인하십시오.


cr
cr 2021년 9월 7일
No known blocks/methods to pull off such a thing in Simulink. Did you try symbolic math?
  댓글 수: 1
Pablo Sevilla
Pablo Sevilla 2021년 9월 8일
Thanks for the suggestion. I've tried to get x=f(y) with the "solve" and "isolate" commands but it seems that matlab couldnt isolate x in this formula.

댓글을 달려면 로그인하십시오.

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by