Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

"For" loop running partially

1 Ansicht (letzte 30 Tage)
Kashfia Mahin
Kashfia Mahin am 4 Nov. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
this is the question of which part 2 is to be solved. My code is working for 1st for loop, but showing error from the 2nd for loop. The error is as
Unable to perform assignment because the left and right sides have a different number of elements.
Error in Problem_3_4 (line 52)
m2(i+1)=m2(i)+(dt/6)*(k1+(2*(k2+k3))+k4);
Thanks for your help in advance!
  3 Kommentare
Stephen23
Stephen23 am 12 Nov. 2018
@Prakhar Jain: I fixed that for you by putting the image markup onto its own line.
Kashfia Mahin
Kashfia Mahin am 12 Nov. 2018
I have already solved it. Thanks for offering help

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!

Translated by