Insert Value into Matrix.

1 view (last 30 days)
Gurpreet Sidhu
Gurpreet Sidhu on 26 May 2017
Answered: Andrei Bobrov on 26 May 2017
i have gotten a 25*1 matrix with the name of Velocity (which i got from diff(x)/diff(t))and i want to put at the start 0 because the car starts from rest how do i do this.

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 26 May 2017
out = [0;Velosity(:)];

More Answers (0)

Categories

Find more on Multidimensional Arrays 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!