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 CenterFile Exchange에서 Prepare 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