Is it possible to convert code written in the Matlab language into a Simulink block diagram?(Edited)
24 次查看(过去 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
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?
采纳的回答
更多回答(1 个)
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!