Bonsoir,

j'ai un problème concernant la création d'un output sur un cell array :

Ma matrice se présente comme suit grcay_mat 7*76 char
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
ur          980            1154            0             923            -57 
sf          -688           -810            0             -648           40  
bp          1682           2063           2431           2137           455 
jy          -3431          -3709          -4283          -3823          -392
cd          1129           1793           2293           1893           764 
ad          -2505          -1670          -2349          -1806          699 
mp          3441           3242           1879           2969           -472
j'utilise donc ce code la:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
pathname='h:\profile\Desktop\TEST';
filename=sprintf('prt.out');
 
titles={'cont'    'pos_old'     'pos_norm'      'pos_tmp'    'pos_corr'      'diff'};
GR={'GRCAY'};
GR2=grcay_mat';
fid=fopen(fullfile(pathname,filename),'wt');
fprintf(fid,'%s \n',GR{:});
fprintf(fid,'%s\t%s\t%s\t%s\t%s\t%s\t\n',titles{:});
fprintf(fid,'%s\t%f\t%f\t%f\t%f\t%f\t\n',GR2{:});
fclose(fid);
Cependant j'ai ce message d'erreur qui apparait:
??? Cell contents reference from a non-cell array object.
Quelqu'un pourrait-il m'aider ?