Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
I have stored some color values in an array.but it has some exponential values..how i normalise this values in matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
a(i,1)=red a(i,2)=green a(i,3)=blue a(i,4)=yellow a(i,5)=cyan a(i,6)=magenta a(i,7)=black a(i,8)=white
dlmwrite('fr.mat',a) b=dlmread('fr.mat')
댓글 수: 0
답변 (1개)
Image Analyst
2014년 6월 14일
So what if it has values that can be expressed in exponential notation. To normalize to 0-1 just do it like you would any array
minValue = min(a(:));
maxValue = max(a(:));
normalized_a = (a - minValue) / (maxValue - minValue);
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!