How to add a value beginning of an array?

761 次查看(过去 30 天)
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.
  1 个评论
Stephen23
Stephen23 2023-12-15
Open question: is there a neat approach irrespective of the vector orientation?

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2021-11-9
编辑:Image Analyst 2023-12-13
y25 = [0, y25];
To learn other fundamental concepts, invest 2 hours of your time here:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by