get BlockPath of all signals from a dataset

1 visualización (últimos 30 días)
ANAND NALE
ANAND NALE el 7 de Mzo. de 2022
Respondida: Juan Diego Rios Penaloza el 14 de Jun. de 2023
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.

Respuestas (1)

Juan Diego Rios Penaloza
Juan Diego Rios Penaloza el 14 de Jun. de 2023
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.

Categorías

Más información sobre Prepare Model Inputs and Outputs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by