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

조회 수: 1 (최근 30일)
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.
  댓글 수: 2
madhan ravi
madhan ravi 2019년 1월 21일
편집: madhan ravi 2019년 1월 21일
@Riyadh next time when posting a question better is to attach your script file instead of pasting 400 lines of code ! I formatted your code today.

댓글을 달려면 로그인하십시오.

채택된 답변

Kevin Phung
Kevin Phung 2019년 1월 21일
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
Riyadh Salim
Riyadh Salim 2019년 1월 21일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call MATLAB from Python에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by