开发者

display text on screen - MATLAB

Hi

I am planning a simple experiment in MATLAB. I need to print a colored text on the screen, inverted. I found the function

text(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.

ariel


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');


Alternatively:

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

display text on screen - MATLAB

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜