hello can you please help I'm getting this errorIndex in position 2 exceeds array bounds (must not exceed 1). Error in BetaNewmark_MDOF (line 21) xd(:,i+1)=xd(:,i)+(1-b)*dt*x
조회 수: 1 (최근 30일)
이전 댓글 표시
답변 (2개)
darova
2021년 9월 1일
You are trying to access allements that don't exist. Try this
% xdd(:,i), xdd(:,i+1) % WRONG
xdd(i), xdd(i+1) % GOOD
댓글 수: 0
Walter Roberson
2021년 9월 1일
you only assign to a single column of xdd but you try to access up to column that is one more than the number of times you have
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!