How can I extract an entire column from a struct inside a bus?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Puru Kathuria
2020-7-14
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!