howwould you in put this in to math lab with functions
    3 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    adriana resendez
 am 9 Feb. 2015
  
    
    
    
    
    Beantwortet: Star Strider
      
      
 am 9 Feb. 2015
            add all elements of vector x=[37294]
0 Kommentare
Akzeptierte Antwort
  Star Strider
      
      
 am 9 Feb. 2015
        Assuming you intended to put spaces or commas between the numbers, use the sum function:
x=[3,7,2,9,4];
sum_x = sum(x)
produces:
sum_x =
      25
0 Kommentare
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!