How to access variables to calculate MSE
조회 수: 2 (최근 30일)
이전 댓글 표시
How should i write if i need to calculate MSE using the values from the first row in my original variable called ori_bytes and the first row of my compressed variable call comp_bytes? Then the system need to continue calculating MSE until the last row. I have 100 rows in both ori_bytes and comp_bytes
댓글 수: 0
답변 (1개)
Walter Roberson
2016년 12월 6일
all_mse = sum((double(ori_bytes) - double(comp_bytes)).^2, 2);
No loop needed.
This assumes that your "comp_bytes" are what has been reconstructed by compression and decompression.
댓글 수: 3
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!