transform struct into different representation
1 次查看(过去 30 天)
显示 更早的评论
how do I transform a into b such that
a.x(idx)==b(idx).x
Example
a.x=[1 2]
a.y=[3 4]
into
b(1).x=1
b(2).x=2
b(1).y=3
b(2).y=4
without two forloops?
0 个评论
回答(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!