How can I extract an entire column from a struct inside a bus?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to extract the data from a nested struct inside a bus. I currently have it so that a selector and bus selector pull individual values from the column but I would like to pull either the entire column or reassemble the column after extraction.
I have tried converting the struct from a bus into a NxM matrix using the signal conversion into bus to vector blocks but due to mixed data types in the struct it will not convert. Removing those may be possible but it is a last resort.
0 Kommentare
Antworten (1)
Puru Kathuria
am 14 Jul. 2020
Hi,
I understand what you are trying to accomplish. Please go through the below mentioned links names as Link1 and Link2. Link1 will help you in extracting struct output from bus and then Link2 will help you in logging the data stored in struct in time series format which can be further exported in your workspace. This might remove the conflict in your mixed datatypes.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Simulink Environment Customization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!