difference in brackets (, [ or no brackets?
Ältere Kommentare anzeigen
I tried typing in a simple array
x= 0:2:10
x=[0:2:10]
x=(0:2:10)
they all give me the same answer whats the difference then?
Akzeptierte Antwort
Weitere Antworten (2)
Image Analyst
am 18 Okt. 2016
0 Stimmen
No difference - they're ignored. Only difference would be if you used braces {}, which would turn the result into a "cell". See the FAQ for info on that: http://matlab.wikia.com/wiki/FAQ#What_is_a_cell_array.3F
ogaba-oche david
am 10 Mai 2023
0 Stimmen
(a+A)/2 keeps telling error, when a = 8 and A = -2
1 Kommentar
Not for me.
a = 8;
A = -2;
(a+A)/2
Please show us the full and exact text (everything in red) of the error message you received when you performed that operation. You may also want to show us more information about the variables a and A.
whos a A
Kategorien
Mehr zu Creating and Concatenating Matrices 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!