How do I run an "example.m" file in Simulink?

Antworten (1)

Jonas
Jonas am 5 Feb. 2021
Bearbeitet: Jonas am 5 Feb. 2021

0 Stimmen

In the MATLAB workspace type and enter:
>> example
Or, go to the editor and click the green play button 'Run'.
Or press the 'F5' button when inside the editor.
Or in the MATLAB file explorer, right click the file and select 'Run'.
Or in the MATLAB file explorer, right click the file and press 'F9'.

2 Kommentare

ak
ak am 9 Feb. 2021
I want to run/call (example.m ) file in simulink project/file.
Jonas
Jonas am 9 Feb. 2021
Bearbeitet: Jonas am 9 Feb. 2021
Use the MATLAB function block and copy your code inside of it.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Modeling finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

ak
am 4 Feb. 2021

Bearbeitet:

am 9 Feb. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by