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

My MATLAB code is written in example.m. Now, how do I run this example.m file in Simulink?

답변 (1개)

Jonas
Jonas 2021년 2월 5일
편집: Jonas 2021년 2월 5일

0 개 추천

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

ak
ak 2021년 2월 9일
I want to run/call (example.m ) file in simulink project/file.
Jonas
Jonas 2021년 2월 9일
편집: Jonas 2021년 2월 9일
Use the MATLAB function block and copy your code inside of it.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

제품

질문:

ak
2021년 2월 4일

편집:

2021년 2월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by