Adding a value to a vector
Mostra commenti meno recenti
I have vector x
x=[ 1 2 3 ]
I want i add value 4 to every value in x
[ 1 2 3 ] + 4
Expected outcome
x=[ 5 6 7 ]
How can i perform this in matlab?
1 Commento
Jan
il 16 Gen 2021
Did you try this? [ 1 2 3 ] + 4 is working already.
Risposte (1)
Categorie
Scopri di più su Get Started with MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!