J'ai un tableau x et un tableau de struct R dont tous les éléments ont un champ x. Comment je fais pour affecter le premier au second ?
merci d'être passé par ici
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 R = repmat(struct('x', 0, 'y', 0, 'z', 0), 3, 1) ; x = [1;1;1] ; % tout le reste donne une erreur : [R.x] = x ; {R.x} = x' ; R.x = x ; R.x = x' ;
Partager