필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Moving Specific Values In Matrix By One Column

조회 수: 1 (최근 30일)
DANIEL PEARCE
DANIEL PEARCE 2020년 10월 28일
마감: MATLAB Answer Bot 2021년 8월 20일
I have a 3x3 matrix in the form of X = [0 1 0; 0 0 1; 0 1 0]. If a value is equal to one, I want to shift it to the left by one column. So, X' should look something like X' = [1 0 0; 0 1 0; 1 0 0]. I'm having some trouble doing this, so any help would be appreciated. Thanks.

답변 (1개)

Mayank Bajpai
Mayank Bajpai 2020년 10월 30일
circshift(x,-1,2)

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by