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.
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
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 Kommentar
Wick
am 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.
Akzeptierte Antwort
Weitere Antworten (0)
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!