hi, i want to generate a signal from simulink that activate a m-file code. how can i do that?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Ameer Hamza
2018-8-9
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!