plotting a feather plot for u and v component
    7 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Giulia
 el 9 de Jun. de 2023
  
    
    
    
    
    Comentada: Giulia
 el 19 de Jun. de 2023
            Hi everyone.
How can I plot a figure similar to the example below, using the nctdf data attached?
The lon (longitude) and latitude represents a small area, it would be ideal to plot exactly the point within this area which is of the following coordinates:
exactlat = 53.75129
exactlon =-5.181839
Thank you in advance for the help!

2 comentarios
Respuesta aceptada
  Adam Danz
    
      
 el 12 de Jun. de 2023
        If you zoom into your data, you'll see that you've got arrows. 
load('u10.mat')
load('v10.mat')
figure(); 
tcl = tiledlayout(2,1); 
nexttile()
feather(squeeze(u10(1,1,:)),squeeze(v10(1,1,:)))
title('full view')
nexttile()
feather(squeeze(u10(1,1,:)),squeeze(v10(1,1,:)))
xlim([ 176.83       316.27])
title('zoomed')
Perhaps you could dow-sample your data.  This example plot every 5th data point.  Just consider the risks (clipping out important outliers or missing trends). 
figure
idx = 1 : 5 : size(u10,3);
feather(squeeze(u10(1,1,idx)),squeeze(v10(1,1,idx)))
4 comentarios
  Adam Danz
    
      
 el 13 de Jun. de 2023
				This line below plots every 10th data point starting with #5.  
idx = 5 : 10 : size(u10,3)
Perhaps you'd rather use one of the following lines, 
idx = 1 : 5 : size(u10,3)  % [1 6 11 16,...]
idx = 5 : 5 : size(u10,3)  % [5 10 15 20, ....]
Más respuestas (0)
Ver también
Categorías
				Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





