댓글 수: 2

James Tursa
James Tursa 2019년 9월 19일
편집: James Tursa 2019년 9월 19일
Please edit your question and post your code as text formatted with the CODE button. We cannot copy & paste pictures into MATLAB to try out your code. My guess is that u is a variable and not a function, so using t(i) in the indexing may be the cause of the problem.
John D'Errico
John D'Errico 2019년 9월 19일
Yes. I think you are correct. The obvious problem is if u is a variable, are the terms like (u(t(i) + pi)). t(i) + pi will never be an exact integer.

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

답변 (1개)

SaiDileep Kola
SaiDileep Kola 2019년 9월 23일

0 개 추천

Pre allocating arrays may not solve your problem, as the error msg states you are indexing array ”u” using either negative integers or fractions, check if “t(i)-3” value turns out to be a negative or fraction.

카테고리

도움말 센터File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

질문:

2019년 9월 18일

답변:

2019년 9월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by