Is there a tool for copying equations from, say, the MATLAB documentation into a .m file?

2 views (last 30 days)
Keenan Barazi
Keenan Barazi on 8 Mar 2021
Answered: Arthi Sathyamurthi on 24 Mar 2021
Alternatively, is there a way to access/generate an .m file for a single Simulink block? Specifically, I want to take all of the Induction Motor equations, input whatever values I have, and calculate whichever values I'm looking for. Ideally I'd like to do it symbolically. There's nothing stopping me from typing all of this manually other than that there are a lot of equations and it would take a long time.

Answers (1)

Arthi Sathyamurthi
Arthi Sathyamurthi on 24 Mar 2021
Hello Keenan,
You cannot find the M file of the ‘Induction motor’ Simulink Block. You can find the subsystem blocks of it by right clicking the block and selecting Mask -> Look Under Mask option. After which you can double click the subsystem to open up.

Community Treasure Hunt

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

Start Hunting!

Translated by