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).

3 vues (au cours des 30 derniers jours)
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)?

Réponses (1)

Paul
Paul le 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.

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by