我有阵列(矢量)r =[2 4]和report大小为50*2的矩阵.我想放在矩阵的r第1行report.我跑的时候
with report(1)=r;
Run Code Online (Sandbox Code Playgroud)
MATLAB返回此错误:
??? 在赋值A(I)= B中,B和I中的元素数必须相同.
我该如何解决这个错误?
ang*_*nor 10
report(1,:)=r
Run Code Online (Sandbox Code Playgroud)
您还需要指定列.否则report(1)是标量,r是向量,并且您得到错误.