在屏幕上显示文本 - MATLAB

问题描述:


我正在计划一个简单的MATLAB实验。我需要在屏幕上打印一个彩色文字,倒置。我发现功能在屏幕上显示文本 - MATLAB

text(0.6,0.5,'red','rotation',180,'fontsize',50,'color','k') 

但我想摆脱轴(x和y)的,我想只是文本在屏幕的中央呈现..
任何想法,将appriciated。
阿里尔

figure 
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'); 
+0

感谢,它可以帮助,但我仍然有一个灰色的背景?我怎样才能用白色填充它? – user552231 2011-01-09 11:03:12

或者:

figure('Color','white', 'Menu','none') 
text(0.5, 0.5, 'red', 'Rotation',180, 'FontSize',50, 'Color','k', ... 
    'HorizontalAlignment','Center', 'VerticalAlignment','Middle') 
axis off 

alt text