The difference between semicolon and comma
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi matlab community ,
I am working on let' s say a homework. I realized that during the homework, The representations one of them x=[1,2,3] and x=[1;2;3] are different. What is the different between them? I get a solution using both of them but different.
0 Kommentare
Akzeptierte Antwort
Wayne King
am 31 Mär. 2013
x = [1,2,3];
creates a 1x3 row vector.
x = [1;2;3];
creates a 3x1 column vector
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB 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!