how can I write the following loop for all t values from 0 to 10, I tried this but I got an error saying
"Index in position 1 is invalid. Array indices must be positive integers or logical values."
for t=0:0.1:10LA(t/0.1 +1) = 1.15-(5*t);end
for loopindexing
for t=0:0.1:10LA(t/0.1 +1) = 1.15-(5*t);end
Best Answer