How to add a value beginning of an array?

709 vues (au cours des 30 derniers jours)
Ali Deniz
Ali Deniz le 9 Nov 2021
Commenté : Stephen23 le 15 Déc 2023
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 commentaire
Stephen23
Stephen23 le 15 Déc 2023
Open question: is there a neat approach irrespective of the vector orientation?

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 9 Nov 2021
Modifié(e) : Image Analyst le 13 Déc 2023
y25 = [0, y25];
To learn other fundamental concepts, invest 2 hours of your time here:
  3 commentaires
Falah
Falah le 11 Avr 2023
thank you
LIM BOON XUAN
LIM BOON XUAN le 13 Déc 2023
thank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by