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.
Show older comments
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 Comment
Sattik Basu
on 19 Aug 2017
Edited: Walter Roberson
on 20 Aug 2017
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!