user552231
user552231

Reputation: 1135

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,'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

Upvotes: 1

Views: 8064

Answers (2)

Amro
Amro

Reputation: 124563

Alternatively:

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

Upvotes: 4

zellus
zellus

Reputation: 9592

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

Upvotes: 6

Related Questions