making a text figure
Ältere Kommentare anzeigen
Hi,
I'm trying to use the the following code to print some text onto a figure window. As an example, I am using the following line of code
figure;
text(0.5,0.5,'Hello world');
However, when I run the code, I get the error message:
??? Attempt to call constructor text with incorrect letter case.
however, using Text( ) does not work either.
if i try to use "doc help", it shows that i am doing calling this function correctly, but if i use "help text", matlab says
No help found for text.m.
How can i fix this?
thanks in advance
Akzeptierte Antwort
Weitere Antworten (2)
Nirmal Gunaseelan
am 19 Jul. 2011
0 Stimmen
TEXT usually lives under $matlabroot\toolbox\matlab\graph2d\text - if you do not find it there, I'd re-install MATLAB.
aaa
am 19 Jul. 2011
0 Stimmen
1 Kommentar
Walter Roberson
am 19 Jul. 2011
I agree with the other two: this problem is usually caused by having your own text() function.
Kategorien
Mehr zu Desktop finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!