How to add a value beginning of an array?

473 views (last 30 days)
Ali Deniz
Ali Deniz on 9 Nov 2021
Commented: Ali Deniz on 9 Nov 2021
y25=[1.875000000000000,3.046875000026040]
How can I add 0 (zero) to the beginning of this array?
I want to get the array y25=[0,1.875000000000000,3.046875000026040]
Thank You.

Accepted Answer

Image Analyst
Image Analyst on 9 Nov 2021
y25 = [0, y25];

More Answers (0)

Community Treasure Hunt

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

Start Hunting!