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 で次のコマンドを実行したとき:
x=zeros(size(30,1),1)
1x1 double値を持つ行列を取得しました0。
1x1
double
0
それはどうですか?
ありがとう。
size(30,1)size(A,1)"matrix"の行数 ( で示される) を返します30。行列には要素が 1 つしかないため、行数は であり、これはゼロの行列で1あることを意味します。x1x1
size(30,1)
size(A,1)
30
1
x