get BlockPath of all signals from a dataset

1 回表示 (過去 30 日間)
ANAND NALE
ANAND NALE 2022 年 3 月 7 日
回答済み: Juan Diego Rios Penaloza 2023 年 6 月 14 日
I have logged 2 signals in Simulink data inspector.
If I export signals using Simulink.sdi.exportRun(RunID), it creates a mat file with dataset.
How can I get BlockPaths of all looges signals in a cell array.

回答 (1 件)

Juan Diego Rios Penaloza
Juan Diego Rios Penaloza 2023 年 6 月 14 日
You can do the following:
for i=1:numElements(data)
YourCellArray{i,1} = convertToCell(data{i}.BlockPath);
end
I am not sure why there is not a straight way of doing this, or at least I didn't find it.

カテゴリ

Help Center および File ExchangePrepare Model Inputs and Outputs についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by