Error - Subscript indices must either be real positive integers or logicals ??
조회 수: 1 (최근 30일)
이전 댓글 표시
sym(zeros(4, 1));
is showing an error "Subscript indices must either be real positive integers or logicals". What may be the reason behind this error? How it can be resolved ??
댓글 수: 1
답변 (1개)
the cyclist
2017년 6월 5일
Is it possible that you have defined a variable named sym, and you are trying to index into that? What does the command
which sym
give?
If that gives a variable name, that's presumably the problem. Remember not to use variable names that are MATLAB keywords.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!