Given that t is in increments 0.1 and goes from 0 to 20, how can I make a variable that consists of 5t^2?

10 views (last 30 days)
Tyler Bodnarik
Tyler Bodnarik on 14 Sep 2020
Commented: Tyler Bodnarik on 14 Sep 2020
First I made x as:
>> t = 0:0.1:20
I have tried numerous ways to get a variable consisting of 5t^2 and have the same result. It ends up generating a 1x201 row vector with values from 0 to 2.
I believe it is only multiplying 5 by the 0.1 increment but not the actual values. Any solutions?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!