How can I extract an entire column from a struct inside a bus?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Puru Kathuria
le 14 Juil 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 commentaires
Voir également
Catégories
En savoir plus sur Simulink Environment Customization dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!