MATLAB Answers

0

hi, i want to generate a signal from simulink that activate a m-file code. how can i do that?

Asked by Mehrshad Pakjoo on 9 Aug 2018
Latest activity Answered by Ameer Hamza
on 9 Aug 2018
hi, i want to generate a signal from simulink that activate a m-file code. how can i do that? my m-file is ok and run by itself.but iwant to run itself when i run my simulink model. can you help me?

  0 Comments

Sign in to comment.

1 Answer

Answer by Ameer Hamza
on 9 Aug 2018

You can use MATLAB function block to use MATLAB code in Simulink. MATLAB does not support code generation for all the functions so you might need to use coder.externsic() to compile the Simulink model.

  0 Comments

Sign in to comment.