Hi
I am planning a simple experiment in MATLAB. I need to print a colored text on the screen, inverted. I found the functiontext(0.6,0.5,'red','rotation',180,开发者_C百科'fontsize',50,'color','k')
But I want to get rid of the axis (x and y), I want just the text to be presented in the center of the screen..
any ideas would be appriciated. arielfigure
set(gcf,'Color', 'white')
text(0.6,0.5,'red','rotation',180,'fontsize',50,'color','r')
set(gca,'Color','white');
set(gca,'XColor','white');
set(gca,'YColor','white');
Alternatively:
figure('Color','white', 'Menu','none')
text(0.5, 0.5, 'red', 'Rotation',180, 'FontSize',50, 'Color','k', ...
'HorizontalAlignment','Center', 'VerticalAlignment','Middle')
axis off
精彩评论