- use find_system() command to get list of all input ports at top level of model.
- write a for loop that iterates over each input port found in step 1. Use get_param() to get the desired information for each port ( for example, name, type, dimensions, etc.)
- Collect the information for each port into a MATLAB table
- use function writetable() to write the info from step 3 to a XLS file
How to get all input signal names connected to my simulink block exported in excel file?
25 ビュー (過去 30 日間)
古いコメントを表示
I need to get all input signals name to be exported in new excel file for my simulink block by MATLAB code.
Please can anyone tell me how to do that and which MATLAB tools will be required to export to excel file?
0 件のコメント
回答 (1 件)
Mark McBroom
2020 年 5 月 14 日
Here is one approach:
Write MATLAB code that:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Programmatic Model Editing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!