File Exchange Pick of the Week

February 27th, 2008

Advanced MATLAB: Calling Simulink from MATLAB

I normally only have two posts a week, but I needed to throw in this extra post to announce a new blog by my buddy Seth. Seth will be discussing Simulink every week. This week, he is discussing batch simulations of Simulink from MATLAB [Click here]. He goes much deeper into the topic than I do in today’s video.

Please check out his blog [Click here] and be sure to let him know who sent you!

Video Content

iconFiles.jpgiconPod.jpglazy.jpg

2 Responses to “Advanced MATLAB: Calling Simulink from MATLAB”

  1. Ray Goldsworthy replied on :

    Hi, enjoyed the blog. Can you call compiled simulink models in a similar manner? I would like to compile simulink models using real-time workshop, but call those models from Matlab GUI….thanks, Ray

  2. Seth Popinchalk replied on :

    @Ray - Try using the Real-Time Workshop Rapid Simulation Target. You can set parameters, provide inputs and record outputs from your simulation. The interface is through the system command prompt, so your MATLAB code will not use the SIM command. Instead, you call the generated executable directly from your MATLAB GUI. Check out the documentation for running batch mode simulations:

    http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ug/f6817.html

    Good luck!

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Bob, Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

  • Zach: Hi Doug and Les, I didn’t have a lot of time to mess with this, but I did find a work-around. I plotted...
  • hamed: k
  • Les: @Zach This isn’t exactly what you are looking for but at least it puts all three parameters on the same...
  • Zach: Thanks for your suggestions Doug. I’ll give that a shot and see what happens. I’ve seen many of...
  • Doug: @Zach, I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense....
  • Doug: @Teja, I think this will work: http://www.mathworks .com/access/helpdesk /help/techdoc/ref...
  • Gify: merry christmas :) nice christmas tree! Regards, Janet Gify
  • Teja: Dear Doug Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i...
  • Zach: I’m working with geophysical data, so I’d like to produce a depth profile. The y-axis would be...
  • Doug: @Ashok First, please do not use variable names that are MATLAB commands (std and mean). Second, p(j) should be...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.