Transition values of contour Plot
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Evangelos Rompogiannakis
 am 21 Nov. 2020
  
    
    
    
    
    Beantwortet: Star Strider
      
      
 am 21 Nov. 2020
            Hello everyone!
I have a contour plot with two colours. The command I used is contourf(X,Y,Z) where  x and y  are condinates coordinates for Z. I want to Highlight the transition values, and provide a numerical estimation of their position. The transition happens when z varis from 0.5 <z <1.5. 
I have used this but i get values of r2,r3 which are larger than the set of axis.
[r2, r3]= find((T(:,:)>0.9998 & T(:,:)<1.0002))
Can someone give a hint on how solve this problem?
Thank you 
0 Kommentare
Akzeptierte Antwort
  Star Strider
      
      
 am 21 Nov. 2020
        Try something like this: 
[X,Y,Z] = peaks(42);
figure
contourf(X, Y, Z);
hold on
[c,h] = contourf(X, Y, Z, [0.5:0.01:1.5]);
h.LineStyle = ':';
h.Color = 'r';
hold off
Experiment to get the result you want.  
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Contour Plots finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

