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

1 回表示 (過去 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);
  1 件のコメント
Wolfgang McCormack
Wolfgang McCormack 2021 年 5 月 23 日
@Chunru well that turns it to a simple math problem. Thanks :D

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBehavior and Psychophysics についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by