difference in brackets (, [ or no brackets?
古いコメントを表示
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?
採用された回答
その他の回答 (2 件)
Image Analyst
2016 年 10 月 18 日
0 投票
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
2023 年 5 月 10 日
0 投票
(a+A)/2 keeps telling error, when a = 8 and A = -2
1 件のコメント
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
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!