Info

此问题已关闭。 请重新打开它进行编辑或回答。

I have matlab .m code that I want to convert to simulink. How?

1 次查看(过去 30 天)
significant code written in native matlab language and want to embed them in simulink blocks for use in simulink based simulator. How do I do this? Been looking and not clear at all.

回答(2 个)

Azzi Abdelmalek
Azzi Abdelmalek 2016-8-18

Kitch Wilson
Kitch Wilson 2016-8-18
But that is only or a single statement (like sine). I have functions of several hundred lines for signal optimization etc.
Error from the attempt to compile was: did not find compiler even though gcc is used normally by matlab. using mex -setup seems is looking for Xcode on the mac: "Xcode appears to be installed, but it has not been configured". Confusing.
  1 个评论
Walter Roberson
Walter Roberson 2016-8-18
Note: if you have not used XCode before then after you install it, you need to find it in your Applications folder (or launchpad) and run it, and accept the license that comes up. It is not possible to compile anything until you have accepted the XCode license agreement.

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by