Mar 1, 2012 #1 P praseeja n v Newbie level 1 Joined Feb 26, 2012 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,285 can anyone suggest any method to embedd a matlab code in a block in simulink model?
Mar 2, 2012 #2 P pikulin03 Junior Member level 1 Joined Apr 30, 2009 Messages 17 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,283 Activity points 1,434 There is a special block called EMBEDDED MATLAB FUNCTION. You can use it to embedd almost any part of the code and fucntions. The only problem is that you have to use eml.extrinsic(‘FUNCTION NAME') structure in the beginning of your code to define some MATLAB functions.
There is a special block called EMBEDDED MATLAB FUNCTION. You can use it to embedd almost any part of the code and fucntions. The only problem is that you have to use eml.extrinsic(‘FUNCTION NAME') structure in the beginning of your code to define some MATLAB functions.