En effet, mon but consiste à fixer les bornes sup et inf de colarbar à chaque pas.
juste pour voir une idée sur le code
Par contre il ne marche pas il m'affiche comme erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 for n=1:100 A=TF{100}; if (mod(n,1)==0) imagesc('CData',A(:,:,2)); xlabel('axe X'); ylabel('axe Y'); axis tight; axis equal; c=colorbar; colormap(jet); c.Label.String = 'température [K]'; min=round(min(min(A(:,:,2)))); max=round(max(max(A(:,:,2)))); CLims=[min max]; caxis(CLims); drawnow; hold on end end
Merci pour votre aide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 >> min=round(min(min(A(:,:,2)))); Subscript indices must either be real positive integers or logicals.
Partager