Adding elements in column vectors
Mostra commenti meno recenti
Hi
I have 2 colimn vectors a = 1:500 and b= 1:6000 I would like to make a new column vector c with (a first) and (b second) so the new column vector would bw c = 1:6500.
Any help would be greatly appreciated
Thank you
David
1 Commento
Scott MacKenzie
il 10 Giu 2021
Modificato: Scott MacKenzie
il 10 Giu 2021
You want to concatenate the vectors a and b. This is one of the most basic operations in MATLAB. All the details are here.
Risposta accettata
Più risposte (1)
KSSV
il 10 Giu 2021
0 voti
MAke a and b of equal dimension using linspace. and then add.
Read about linspace.,
Categorie
Scopri di più su Creating and Concatenating Matrices 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!