please help to solve this error " In an assignment A(:) = B, the number of elements in A and B must be the same." . code is attached in zip file.
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
please help to solve this error " In an assignment A(:) = B, the number of elements in A and B must be the same." . code is attached in zip file.
1 commentaire
Wick
le 4 Mai 2018
can you help me how can i solve this problem. because i tried a lot to solve this one but could not got successs.
Since x_stage1 has two elements, you may only assign one to x_temp(stage). So it could be
x_temp(stage) = abs(x_temp1(1)).*y;
For example. Whether you pick the first or second element - or whether you need to assign both to x_temp in another way is up to you to decide.
Réponse acceptée
Plus de réponses (0)
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!