How to filter out x-y coordinates and data from a plot, covering exactly the boundary of some region?
    6 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Aditya Wahi
 il 11 Lug 2017
  
    
    
    
    
    Modificato: Aditya Wahi
 il 21 Lug 2017
            I want to extract the data that belongs exactly to within a particular boundary, but I don't know how to go about it.
1 Commento
  KSSV
      
      
 il 11 Lug 2017
				If your small region data falls beyond the main region data, then you can do extrapolation but this is not suggested. Why don't you show your domains pictorially so that we can get clear idea.
Risposta accettata
  Chad Greene
      
      
 il 16 Lug 2017
        To find points in a polygon use inpolygon, just as I suggested in the other post. If you're using Mouginot's annual velocity dataset, the coordinates are
 x = -2800000:1000:2800000; 
 y = (2800000:-1000:-2800000)';
and when you plot it you can use
imagesc(x,y,V) 
axis xy image
To find the pixels corresponding to Amery, get a grid of x,y points like this:
[X,Y] = mesghrid(x,y);
0 Commenti
Più risposte (1)
  KSSV
      
      
 il 11 Lug 2017
        You can get the points lying inside the closed region using inpolygon. Read about inpolygon.
6 Commenti
Vedere anche
Categorie
				Scopri di più su Color and Styling in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!