필터 지우기
필터 지우기

Is it possible to copy a matrix with size (52x2) to another matrix with size (52x3)

조회 수: 2 (최근 30일)
Hello everyone, I want to copy a matrix with size (52x2) to another matrix which is full of zeros (52x3) and I want the third column of (53x3) matrix to stay still full of zeros. Is it possible? And how can ı do it? Thank you

채택된 답변

Walter Roberson
Walter Roberson 2018년 9월 29일
Source = randi(10, 52, 2); %for example
Target = zeros(52, 3);
Target(:,1:2) = Source;

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by