更新时间:2022-12-27 10:47:51
MATLAB警告您:在必要时使用括号进行分组.
在您的情况下,这是必要的.您希望.'
适用于1:N,因此请使用括号()
.方括号 []
用于收集其中的元素,但是已经收集了 1:N
As MATLAB warns you: Use parentheses to group if necessary.
In your case it is necessary. You want .'
to apply to 1:N, therefore use parentheses ()
.
Square brackets []
are for collecting the elements within, but 1:N
is already collected
A=(1:N).';