transform struct into different representation

1 vue (au cours des 30 derniers jours)
Markus Leuthold
Markus Leuthold le 18 Juin 2014
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?

Réponses (0)

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by