MATLAB Answers

Reassigning values in a matrix

조회 수: 1(최근 30일)
Native
Native 11 Sep 2019
Answered: KSSV 11 Sep 2019
I have a matrix, and here's what I want to do with it -
1.) Find the max value of the matrix, assign it to be 1.
2) Find all the values in the matrix that are 80% of the max value, and assign it the value 0.8
3) Find all the values in the matrix that are 60% of the max and assign it the values of 0.6
How can I do this in matlab?

  댓글 수: 1

madhan ravi
madhan ravi 11 Sep 2019
Is it homework? What have you tried so far?

로그인 to comment.

답변 수 (1)

KSSV
KSSV 11 Sep 2019
Read about max toget the maximum value in the array.
Read about inequalitites >and < to get the other task solved.
Read about logical indexing.

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by