My imagesc plot seems to be inverted
Show older comments
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 Comments
Rik
on 24 Feb 2022
It is a bit difficult to judge, but this plot seems to match your expectations. Why do you think imagesc has inverted anything?
fadams18
on 24 Feb 2022
Rik
on 24 Feb 2022
The blue values are low, as indicated by the colorbar. Are the values not the error but some kind of cost?
fadams18
on 24 Feb 2022
Rik
on 24 Feb 2022
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.
Answers (0)
Categories
Find more on Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!