how to obtain a vector contains a mean of other vector
    6 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    bay rem
 am 16 Dez. 2015
  
    
    
    
    
    Kommentiert: bay rem
 am 16 Dez. 2015
            i have an array describes x and y values of 3 points
v=[26   196    27   196    28   196]
i wanna have as a result a vector that :
v1= [mean of(26,27,28) mean of (196,196,196)]
thank you for the help
0 Kommentare
Akzeptierte Antwort
  Mohammad Abouali
      
 am 16 Dez. 2015
        v=[26 196 27 196 28 196];
v1=[mean(v(1:2:end)) mean(v(2:2:end))]
v1 =
      27   196
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Resizing and Reshaping Matrices 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!

