I am getting the following error for the below code: Subscript indices must either be real positive integers or logicals. How can i remove that error.
이전 댓글 표시
clc
clear all
g=9.81;
u=10;
t=0:.1:10;
y(1)=0;
while (y(t)>=0)
y(t)=(u*t)-(0.5*g*t.*t)
end
댓글 수: 1
Sattik Basu
2017년 8월 19일
편집: Walter Roberson
2017년 8월 20일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!