Write in column of matrix

조회 수: 8 (최근 30일)
armin m
armin m . 2021년 11월 28일
편집: Yongjian Feng . 2021년 11월 28일
Hi i wanna write on specific column of matrix. I think it should be like this
but it does not works.tnx

채택된 답변

Yongjian Feng
Yongjian Feng 2021년 11월 28일
편집: Yongjian Feng 님. 2021년 11월 28일
Left hand side A is a matrix, but right hand side also an A as a array? Also left hand side shall be
A(:, 1)
Try this:
A = zeros(2,3);
A(:,1) = [8;9]; % A(:,1) is volumn vector of size 2

추가 답변 (0개)


Help CenterFile Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by