Unable to perform assignment because the left and right sides have a different number of elements.

1 view (last 30 days)
Unable to perform assignment because the left and right sides have a different number of elements. i have this error on a(t)=a; at the end , please help to fix it?
See the attached script file for code.

Accepted Answer

Kevin Phung
Kevin Phung on 21 Jan 2019
you are setting an element, a(t) to be equal to your entire matrix a.
Not sure what you are trying to do, please reformat your question so it's easier to look at.
  1 Comment
Riyadh Salim
Riyadh Salim on 21 Jan 2019
i am setting element a(t) to save the results i guess i figured the answer by adding the loop t=1:100; . i am trying to simulate mathimaticlly a tram by moving from between two stations (electriclly) first i clculate the motion resistances then F and then comes breaking process .
thanks.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!