use of comma & semi colon
37 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
mrituanjay kumar
le 5 Mar 2020
Commenté : Guillaume
le 18 Mar 2020
Please explain the meaning of below command in matlab
A(1, 1:9) = [ 30, 25, 16, 32, 15, 37, 18, 3, 10,]
0 commentaires
Réponse acceptée
Guillaume
le 5 Mar 2020
You're asking a very basic question. 5 minutes with any tutorial would have answered it. We recommend that you go through the free matlab onramp to learn the basics of matlab.
4 commentaires
Guillaume
le 18 Mar 2020
bar([a; b].'); %vertically concatenate the two vector and transpose so they're in columns
Plus de réponses (1)
KSSV
le 5 Mar 2020
That means....in the matrix A in the first row (1) the columns one to 9 are filled with [ 30, 25, 16, 32, 15, 37, 18, 3, 10,].
If you want only single array..can be used:
A = [ 30, 25, 16, 32, 15, 37, 18, 3, 10] ;
Voir également
Catégories
En savoir plus sur Line Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!