how to put a matlab script in a simulink bloc
古いコメントを表示
hi,
i'm trying for quite a while to integrate a matlab script in a simulink bloc so the script will be executed with the model, but i didn't succeed can u help me please.
回答 (1 件)
Kaustubha Govind
2012 年 3 月 6 日
0 投票
To call MATLAB code from a Simulink model, you need to use one of the three MATLAB Function Blocks available. Which one are you using, and what error(s) do you receive?
2 件のコメント
aicha cher
2012 年 3 月 6 日
Kaustubha Govind
2012 年 3 月 7 日
You can use the MATLAB Coder product to generate code from a MATLAB function (not a script), but you can convert your script to a function by simply adding a "function [outputArgs] = myfunctionname(inputArgs)" line at the top of your script.
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!