开发者

display text on screen - MATLAB

开发者 https://www.devze.com 2023-02-03 10:58 出处:网络
Hi I am planning a simple experiment in MATLAB. I need to print a colored text on the screen, inverted. I found the function

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

精彩评论

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