필터 지우기
필터 지우기

My imagesc plot seems to be inverted

조회 수: 3 (최근 30일)
fadams18
fadams18 2022년 2월 24일
댓글: Rik 2022년 2월 24일
Below is my code. and the attached plot .
Mloops = [1,10:10:90];
Missing=10:10:90;
for e = 1:length(Mloops)
eta =Mloops(e);
for i=1:length(Missing)
mv= Missing(i);
load( ['res/res_',int2str(eta),'_',int2str(mv),'.mat'] ,'RRE_NeA');
sumRRE(i) = mean( RRE_NeA(RRE_NeA< 1e-5));
end
RRE(:,e) = sumRRE;
clear summRRE;
end
eta = [1,10:10:90];
mv = [10:10:90];
imagesc(eta, mv,RRE); colorbar()
set(gca, 'YDir','normal')
xlabel('Maxloops'); ylabel(' MV ');
I expect to have a better error for Maxloops values > 30 ish. but it seems to me, its the inverse it is showing. my raw values shows that my results are correct but the plot doesnt.
  댓글 수: 5
fadams18
fadams18 2022년 2월 24일
Its the relative reconstruction error. im doing some low rank approximations. So a high error means low value. so it should be around the blue. if the value is very small. meaning the error is low. so it should be around the yellow. and my experiment is such that, for high values of the eta( x-axis) and low values of MV (y-axis) I expect the error to become very low hence orange-yellow colors.
Rik
Rik 2022년 2월 24일
Well, since you didn't post your data (looks like a 10x10 array), I can't really look at the numbers alongside the plot itself.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by