Error :Assignment has more non-singleton rhs dimensions than non-singleton subscripts
Afficher commentaires plus anciens
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!
Réponse acceptée
Plus de réponses (1)
Amogh Maharudra Gadagi
le 29 Fév 2016
Modifié(e) : Walter Roberson
le 1 Mar 2016
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
Catégories
En savoir plus sur Functions dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!