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 views (last 30 days)
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)?

Answers (1)

Paul
Paul on 6 Oct 2024
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.

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!