DSPRelated.com
Forums

Matlab function in Simulink

Started by Bushra Mohsin June 10, 2005


Hello,

I want to use a Matlab function as a block in Simulink but don't know how to do that. I am using Matlab 6.5 can anyone please help me with that.

Thanks in advance, 

Bushra Mohsin



To write MATLAB function for simulink refer to S-functions in matlab as
well as C s-functions

S-functions gives you a very good flexibility in choosing port widths ,
data types.........

also yuo can use S-function build wizard to create a S-function for you,
It generates a S-funciotn and a wrapper.
You can place the functionality of the block in wrapper function.

Try it out

Good Luck

Chalamala Srinivasa Rao
Team Member
Tata Consultancy Services Limited
M2 & N2, Sector V, Block GP,
Salt Lake Electronics Complex
Kolkata - 700091,West Bengal
India
Mailto: chalamala.srao@chal...
Website: http://www.tcs.com
"Bushra Mohsin" <bushra_mohsin@bush...>
Sent by: matlab@matl...
06/11/2005 12:58 AM

To
matlab@matl...
cc

Subject
[matlab] Matlab function in Simulink

Hello,
I want to use a Matlab function as a block in Simulink but don't know how
to do that. I am using Matlab 6.5 can anyone please help me with that.
Thanks in advance,

Bushra Mohsin
To
ForwardSourceID:NT000056E2 Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you