Change all values of column vector (pulled from matrix via indexing) to one value

조회 수: 1 (최근 30일)
M.A.G.
M.A.G. 2020년 2월 27일
답변: M.A.G. 2020년 2월 27일
Hello,
I wish to change all values from array (column vector) to the same value. That is,
N(1:3,1)= s
where s is preveoisly defined and N is a matrix. Is there an intelligent way to do this?

답변 (1개)

M.A.G.
M.A.G. 2020년 2월 27일
The answer is in my question.

카테고리

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