How to turn all fives to ones in one column? (Questionnaires)

조회 수: 3 (최근 30일)
Wolfgang McCormack
Wolfgang McCormack 2021년 5월 23일
댓글: Wolfgang McCormack 2021년 5월 23일
Hi all,
Sometimes, there are reverse research questions in research studies. How can I turn all 5 to 1, 4 to 2, 3 remain the same, 2 to 4, and 1 to 5 in just column 3 of a 90 in 11 matrix? Is there any automatic command for it because it's widely used just like t-test.
Thanks

채택된 답변

Chunru
Chunru 2021년 5월 23일
How about this?
A(:, 3) = 6 - A(:, 3);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Just for fun에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by