필터 지우기
필터 지우기

Info

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

could anyone help me to find the solution for the following result

조회 수: 1 (최근 30일)
Prabha Kumaresan
Prabha Kumaresan 2018년 4월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
output1 =
1.0e+08 *
0
0
0
0
1.4969
output1(:,:,2) =
1.0e+07 *
0
0
0
0
5.2715
output1(:,:,3) =
1.0e+07 *
0
0
0
0
4.5626
output1(:,:,4) =
1.0e+08 *
0
0
0
0
1.4911
output1(:,:,5) =
1.0e+08 *
0
0
0
0
1.5844
For the above result i want to find the maximum number of output1 array.could anyone help me to find the solution of it.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 4월 17일

No that is not possible. Those values were output to the screen and now are gone.

You need to change your code to either save all of the versions of your array to take the maximum afterwards, or else to keep a running maximum.

output1_max = -inf;
...
output1_max = max(output1_max, output1(:));
  댓글 수: 2
jaah navi
jaah navi 2018년 4월 17일
when i used the command i am getting error stating Undefined function 'max' for input arguments of type 'cell'. Error in line
output1_max = max(output1_max, output1(:))
Walter Roberson
Walter Roberson 2018년 4월 17일
Prabha is using a numeric output1. I have no idea what you are using.

Community Treasure Hunt

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

Start Hunting!

Translated by