Borrar filtros
Borrar filtros

How can I extract an entire column from a struct inside a bus?

1 visualización (últimos 30 días)
Cam Maxey
Cam Maxey el 11 de Jul. de 2020
Respondida: Puru Kathuria el 14 de Jul. de 2020
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.

Respuestas (1)

Puru Kathuria
Puru Kathuria el 14 de Jul. de 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.

Categorías

Más información sobre Simulink Environment Customization 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