how to linspace to create a coulmn vector

12 views (last 30 days)
Sauravpunit Sidhu
Sauravpunit Sidhu on 16 Feb 2018
Edited: KSSV on 16 Feb 2018
Create a column vector using linspace to enter the values of force from 0 to 550, 50 elements increasing and then 550 to 0, 50 elements decreasing.

Answers (1)

KSSV
KSSV on 16 Feb 2018
Edited: KSSV on 16 Feb 2018
F1 = (0:50:550)' ;
F2 = flipud(F1) ; F2 = (550:-50:0)' ;

Tags

Community Treasure Hunt

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

Start Hunting!