No BSD License  

Highlights from
Examples of incorporating m-code into Simulink models

4.4

4.4 | 10 ratings Rate this file 19 Downloads (last 30 days) File Size: 89.39 KB File ID: #5913

Examples of incorporating m-code into Simulink models

by Jason Ghidella

 

23 Sep 2004 (Updated 24 Sep 2004)

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (10)
24 Sep 2004 hamid bakhtiary  
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)

08 May 2005 Rajput Ajay  
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

23 Jun 2007 Farid Kamaliyev  
08 Oct 2007 Ximena Perez  
18 May 2008 julio VALADEZ

excellent

11 Jul 2008 blue phoenix

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

21 Aug 2008 shrikant katre  
03 Dec 2011 dab483

excellent. Thank you!!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulink Jason Ghidella 22 Oct 2008 07:31:54
sfunctions Jason Ghidella 22 Oct 2008 07:31:54
embedded matlab Jason Ghidella 22 Oct 2008 07:31:54
fcn Jason Ghidella 22 Oct 2008 07:31:54
mfiles Jason Ghidella 22 Oct 2008 07:31:54
sfunctions Odiri Oghre 24 Feb 2009 04:11:04
embedded matlab Mohan Koushik 22 Sep 2011 05:55:00

Contact us at files@mathworks.com