Filter löschen
Filter löschen

How to attach the element into correct index

1 Ansicht (letzte 30 Tage)
Aswin Sandirakumaran
Aswin Sandirakumaran am 25 Mai 2018
Bearbeitet: Fangjun Jiang am 25 Mai 2018
I HAVE VECTOR A = [0,540]
B = [60,600,15]
how to attach B(3) as A(3) ? //output should be A = [0,540,15]
how to attach B(1) as A(1) ? //output should be A = [60,600,15]

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 25 Mai 2018
Bearbeitet: Fangjun Jiang am 25 Mai 2018
A=[A,B(3)]
A(1,:)=B(1,:)

Kategorien

Mehr zu Matrix Indexing 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!

Translated by