Error :Assignment has more non-singleton rhs dimensions than non-singleton subscripts
显示 更早的评论
I got this problem " Assignment has more non-singleton rhs dimensions than non-singleton subscripts " My code is:
v(m,i,j,k,l)=(-1*ones(m,i,j,k,l) + 2*rand(m,i,j,k,l))+rand*(gbest(m,i,j,k,l)-p(m,i,j,k,l));
Thank you so much!
采纳的回答
更多回答(1 个)
Amogh Maharudra Gadagi
2016-2-29
编辑:Walter Roberson
2016-3-1
residual_2(i,j)=0.25*(residual(2*i-2,2*j-2)+residual(2*i-2,2*j-1)+residual(2*i-1,2*j-2)+residual(2*i-1,2*j-1));
How can i get rid of this error
类别
在 帮助中心 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!