How can I create a structure array for two files?
7 次查看(过去 30 天)
显示 更早的评论
I want to add the following into a structure array
the name of structure array is ECGData as follows
conssists of the following
How can I add the two fields(Data as a matrix array & Labels as cell array) into ECGData
6 个评论
Rik
2020-5-26
What is your question? You want a struct with these two fields, and you have a struct with these two fields.
采纳的回答
Rik
2020-5-26
You can treat fields of a struct just like any other variable:
ECGData=struct;%create empty struct, this isn't mandatory
ECGData.Data=rand(162,65536);
ECGData.Labels=cell(162,1);
1 个评论
Stephen23
2020-5-27
Dhiyaa Al-Shammari's incorrectly posted and accepted "answer" moved here:
Thanks a lot dear brother.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!