How can I extract an entire column from a struct inside a bus?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Puru Kathuria
il 14 Lug 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 Commenti
Vedere anche
Categorie
Scopri di più su Simulink Environment Customization in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!