difference in brackets (, [ or no brackets?
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (2)
Image Analyst
il 18 Ott 2016
0 voti
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
il 10 Mag 2023
0 voti
(a+A)/2 keeps telling error, when a = 8 and A = -2
1 Commento
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
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!