clcclear allg=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
MATLAB: 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.
while loop
Related Question
- Subscript indices must either be real positive integers or logicals.
- Cannot get the same result in GA as I get in linprog
- What’s the best way to add semi-colons after each element of a matrix
- Centre of a matrix
- How to generate random amplitude pulse signal
- Needs derivative w.r.t. ‘ y ‘ & then graph w.r.t ‘ t ‘
Best Answer