How do I name a variable in Simulink so that I can later use it to compute a value, such as sin(psi) or cos(phi) or tan(theta).

4 次查看(过去 30 天)
How do I name a variable in simulink so that i can later use it to compute a value based on it, such sin(psi) or cos(phi) or tan(theta)?

回答(1 个)

Paul
Paul 2024-10-6
Hi DJ,
I did not open your model so I'm not sure exactly what you're trying to do.
Having said that, Simulink doesn't really care if signals are named or not. If you have a signal line that is psi, whether or not that signal line is actually named psi, just make that signal line an input to the Trigonometric Function block.
Or maybe you want to use the From and Goto blocks to help route the signal.
If you're trying to do something else, consider posting a screen capture so people don't have to download and open a model. You canuse the leftmost icon on the Insert portion of the ribbon.

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by