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

37 visualizaciones (últimos 30 días)
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 comentarios
Raj
Raj el 17 de Sept. de 2019
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 el 17 de Sept. de 2019
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.

Iniciar sesión para comentar.

Respuesta aceptada

Ted Shultz
Ted Shultz el 17 de Sept. de 2019
You can put all your code into a custom Simulink block:

Más respuestas (1)

Raj
Raj el 18 de Sept. de 2019
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!

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by