making a text figure
27 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Kelly Kearney
2011-7-19
It sounds like something might be overshadowing Matlab's text function. What do you get with this command?
which text -all
更多回答(2 个)
Nirmal Gunaseelan
2011-7-19
TEXT usually lives under $matlabroot\toolbox\matlab\graph2d\text - if you do not find it there, I'd re-install MATLAB.
0 个评论
aaa
2011-7-19
1 个评论
Walter Roberson
2011-7-19
I agree with the other two: this problem is usually caused by having your own text() function.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!