Set parameters of "ToWorkspace" block progrmmatically
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am trying to add toWorkspace block to my simulink model using matlab code. By default it is setting "Limit data points to last:" to 1000 and the save format is Array. I want to set the following parameters as:
Limit data points to last: inf
Save Format: Time Series.
I am trying to do that but cant. Can anyone answer this?
0 件のコメント
採用された回答
Ramtej
2024 年 1 月 11 日
Hi Harish,
As per my understanding you are trying to set the block parameters programatically.
You can use "set_param" function for this case as follows:
% here block_path is the path to your toWorkspace block in your model
set_param(block_path, 'MaxDataPoints', 'inf'); %set the Limit data points to last to inf
set_param(block_path, 'SaveFormat', 'Timeseries'); %set the save format to Timeseries
Hope this resolves your query!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Parrot Minidrones についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!