What's the differene between [a,b] and [a b] in matlab?
Ältere Kommentare anzeigen
For arrays in matlab, is there a difference between an array with comma and one without?
1 Kommentar
Stephen23
am 9 Jan. 2022
There is a very important difference:
- a comma clearly shows the intent.
- a space is unclear and liable to bugs (i.e. unary operators vs binary operators).
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!