how distribuite correctly array in struct
显示 更早的评论
vb=[Sis.dailyprof];
[Sis.dailyprof_Orig]=deal(vb);
but this is not correct...i want to get dailyprof_Orig similar to dailyprof (5787X1 for each element)

采纳的回答
更多回答(1 个)
Sulaymon Eshkabilov
2023-11-8
编辑:Sulaymon Eshkabilov
2023-11-8
Understood your question correctly and without seeing your data. These commands work ok, e.g.:
A = randi(13, 7, 1);
DD.Set1 = A;
% Start the simulation :)
B = DD.Set1;
DD.Set2 = deal(B)
[O1, O2] = deal(DD.Set1, DD.Set2)
That would be helpful to see your sample data.
类别
在 帮助中心 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!