필터 지우기
필터 지우기

How to attach the element into correct index

조회 수: 1 (최근 30일)
Aswin Sandirakumaran
Aswin Sandirakumaran 2018년 5월 25일
편집: Fangjun Jiang 2018년 5월 25일
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]

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2018년 5월 25일
편집: Fangjun Jiang 2018년 5월 25일
A=[A,B(3)]
A(1,:)=B(1,:)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by