I want to change the color of the fields of the confusion matrix and also to change the font size of the entries in the fields. I know I can do it in the plot editor, but I prefer to do it automatically perhaps with set and get? I couldn't find anything in google on that topic.
Just a little example:
a=[1 1 0 1 0 0 1 0 1 0 1 1 0 0 1 0 0 0 1 0]; b=[1 0 1 1 0 1 1 0 1 0 1 0 0 0 1 1 0 0 1 0]; figure(1) plotconfusion(a,b)
%defining my colors f1=[0 0 139]/255; f4=[50 205 50]/255; f9=[236 0 0]/255; f14=[85 26 139]/255; %example a=[1 1 0 1 0 0 1 0 1 0 1 1 0 0 1 0 0 0 1 0]; b=[1 0 1 1 0 1 1 0 1 0 1 0 0 0 1 1 0 0 1 0]; figure(1) plotconfusion(a,b) %fontsize set(findobj(gca,'type','text'),'fontsize',20) %colors set(findobj(gca,'color',[0,102,0]./255),'color',f4) set(findobj(gca,'color',[102,0,0]./255),'color',f9) set(findobj(gcf,'facecolor',[120,230,180]./255),'facecolor',f4) set(findobj(gcf,'facecolor',[230,140,140]./255),'facecolor',f9) set(findobj(gcf,'facecolor',[0.5,0.5,0.5]),'facecolor',f1) set(findobj(gcf,'facecolor',[120,150,230]./255),'facecolor',f14)
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.