I want to collect all the block parameters of the multiple simulink model as per the user select the model and print it in Excel file
1 回表示 (過去 30 日間)
古いコメントを表示
Hello All, I want to collect the parameters of Multiple Simulink Model, model must be selected by user (like using uigetfile) and print all the collected data into Excel sheet. Script should be dynamic no hard coded, your support will be appreciated. Thank you
0 件のコメント
回答 (1 件)
Suman
2024 年 9 月 23 日
Hi Aditya,
You can use the uigetfile function to select the model files for which you want to extract the parameters. Make sure the model name is same as the filename of the models.
Once you have done that, you can loop through the selected files and use the get_param function to get the model parameters as shown here: https://in.mathworks.com/help/simulink/slref/get_param.html#mw_cbf712c7-8705-428e-9a20-8b1ee41d36af
Finally, use the cell2table and writetable functions to convert the parameters cellarray to table and write that to an Excel file.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Environment Customization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!