Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
matlab で次のコードの両方を使用してマトリックスを作成できることに気付きました...
m=[1:2:10]
また
m=1:2:10
上記の2つに実際に違いはありますか?彼らは同じものを出力しているようですか?
ありがとう
違いはありません。たとえば、角括弧を使用して連結できます。
m = [1:2:10 50]
結果:
m = 1 3 5 7 9 50
質問で使用されている配列については、そうする必要はありません。