No BSD License  

Highlights from
Examples of incorporating m-code into Simulink models

4.27273

4.3 | 11 ratings Rate this file 16 Downloads (last 30 days) File Size: 89.4 KB File ID: #5913

Examples of incorporating m-code into Simulink models

by

 

23 Sep 2004 (Updated )

Example Simulink models to support a MATLAB Digest article from September 2004.

| Watch this File

File Information
Description

Simulink 6 has introduced additional methods for incorporating M-code into Simulink models. Learn about the different methods of using M-code when modeling dynamic systems for simulation and code generation and how to choose the appropriate approach for your application.

The September 2004 MATLAB Digest contains an article called "Incorporating M-code into Simulink models" by Fred Smith and Jason Ghidella

http://www.mathworks.com/company/newsletters/

Instructions:
* Unzip the files into a new directory
* run the m-file "runme.m", this will open up a HTML document describing the different models.
* Step through the different models to compare the implementations.
*If you have the Simulink Accelerator, you can also run profile reports to see the time taken by each block, once the simulation is completed.

Required Products Simulink
MATLAB release MATLAB 7 (R14)
Other requirements optionally, Simulink Accelerator
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (12)
04 Jul 2014 Prasad Kalane

Thank you for such a Getting start tutor.

The Tutorial you address is not valid now

16 Jul 2013 want2know

Dear Sir,

I read in the comment that this is a great source to learn S-function level-2. ( I want to convert my level-1 S-function to level-2), so I hope this could be a great start.

May I ask, where can I find this file ?
The September 2004 MATLAB Digest contains an article called "Incorporating M-code into Simulink models" by Fred Smith and Jason Ghidella

http://www.mathworks.com/company/newsletters/
It is no longer available in the link you provided.

Thank you very much in advance.

03 Dec 2011 dab483

excellent. Thank you!!

21 Aug 2008 shrikant katre  
11 Jul 2008 blue phoenix

thank you so much, it help me a lot.
bluephoenix
http://engineer4myanmar.com

18 May 2008 julio VALADEZ

excellent

08 Oct 2007 Ximena Perez  
23 Jun 2007 Farid Kamaliyev  
14 Dec 2005 Hernando Jr N.

A perfect way to learn about level 2 S-functions and the difference between level 2 and level 1

08 May 2005 Rajput Ajay  
29 Mar 2005 S. F.

I needed a very simple S-function to update the global workspace during simulation and I never wrote an S-function before. The templates had too much detail. These examples were perfect.
(sorry, my company has very strong legal requirements about publishing organization names- I can not give you my name / company)

24 Sep 2004 hamid bakhtiary  

Contact us