How to plot 4 rectangles, having their center, and knowing their half width and heigh?
    3 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Luis Garcia
 il 13 Lug 2018
  
    
    
    
    
    Commentato: Luis Garcia
 il 13 Lug 2018
            I'm trying to plot 4 rectangles, I have their center points in a 4X2 Matrix,(A) and I have in a 1X2(B) Matrix the half of width and height. B = [height/2 width/2];
Thanks, Luis Garcia.
0 Commenti
Risposta accettata
  Adam Danz
    
      
 il 13 Lug 2018
        help rectangle
The 'Position' parameter takes a vector of 4 values which are the location of the bottom/left corner (x,y) and the width and height. You have the center points and the width and height so you'll need to calculate the bottom/left corner position which should be straightforward.
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Annotations 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!

