Is it possible to convert code written in the Matlab language into a Simulink block diagram?(Edited)

조회 수: 35 (최근 30일)
I'm looking for a way to convert code written in Matlab language into a Simulink block diagram. If you can understand, please teach me.
  댓글 수: 2
Raj
Raj 2019년 9월 17일
Your question title says you want to 'convert blocks created in Simulink to Matlab language' where as body of the question says 'way to convert code written in Matlab language into a Simulink block diagram'. Both are contradicting. Which one are you looking for?
Shunsuke kishi
Shunsuke kishi 2019년 9월 17일
I'm sorry, I made a mistake. It is correct in the body of the question. I want to convert code written in Matlab language into a Simulink block diagram.

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

채택된 답변

Ted Shultz
Ted Shultz 2019년 9월 17일
You can put all your code into a custom Simulink block:

추가 답변 (1개)

Raj
Raj 2019년 9월 18일
It is always recommended to be specific with your questions and also mention the MATLAB version that you are using. With the information that you have provided, you can convert your MATLAB scripts to functions and then use the 'MATLAB function' block in simulink to run these functions.
See these for details:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by