필터 지우기
필터 지우기

Change all elements in 2nd column to 3

조회 수: 1 (최근 30일)
nty huy
nty huy 2019년 9월 27일
댓글: James Tursa 2019년 9월 27일
vArr = [ 5 5 5 5; 5 5 5 5 ; 5 5 5 5; 5 5 5 5; 5 5 5 5 ]
so i have this and i knw how to change one element but how to change whole colum??
i tired this vArr( :, 3 ) - 2 but then only shows one column
  댓글 수: 1
James Tursa
James Tursa 2019년 9월 27일
vArr(:,3) is the 3rd column. vArr(:,2) is the 2nd column. Etc.

댓글을 달려면 로그인하십시오.

답변 (1개)

James Tursa
James Tursa 2019년 9월 27일
편집: James Tursa 2019년 9월 27일
vArr(:,2) = _____; % <-- you fill in the blank
  댓글 수: 6
nty huy
nty huy 2019년 9월 27일
because im seeing what i can do and you are not helping stop answering my questions if you are not goin to help, DO NOT ANSWER MY QUESTIONS ANYMORE
James Tursa
James Tursa 2019년 9월 27일
Wow ... uh ... OK, no more answers from me ...

댓글을 달려면 로그인하십시오.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by