What (%.5g\n) does mean?
조회 수: 2 (최근 30일)
이전 댓글 표시
disp(['PSNR ' num2str(measerr(CoverImg,s))])
[~, MSE] = measerr(CoverImg,s);
fprintf('MSE: %.5g\n', MSE)
the result is
PSNR 44.6192
MSE: 2.2447
I want MSE : 0.22447 What I must do?
댓글 수: 0
답변 (1개)
Sebastian Castro
2017년 7월 11일
The format string will indicate the display precision -- up to 5 decimal points.
What you're asking is to actually divide the value of MSE by 10... I am sure the following code will give you what you want, but you're manipulating your results and this is likely wrong.
fprintf('MSE: %.5g\n', MSE/10)
- Sebastian
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!