How to add a value beginning of an array?

조회 수: 761 (최근 30일)
Ali Deniz
Ali Deniz 2021년 11월 9일
댓글: Stephen23 2023년 12월 15일
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:
  댓글 수: 3
Falah
Falah 2023년 4월 11일
thank you
LIM BOON XUAN
LIM BOON XUAN 2023년 12월 13일
thank you

댓글을 달려면 로그인하십시오.

추가 답변 (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