How can I merge a numeric matrix (1 column) to an existing numeric matrix?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have created a column numeric matrix like that
A={1
2
3
....}
and I want to merge it to an existing matrix (B) at a specific cell (sc)
B= {
time data
time data
time (sc) 1
time
... }.
so that i would look like this
B= {
time data
time data
time 1
time 2
... 3 }.
If anyone can help me I would really appreciate it. I'm new here and I do not know that mny functions
0 Kommentare
Akzeptierte Antwort
dpb
am 4 Jul. 2019
Presuming the B vector already exists to match the right size, simply knowing the row number is sufficient...
B(sc:end,2)=A;
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!