PLOT TWO FUNCTION IN THE SAME GRAPHIC

1 次查看(过去 30 天)
Hi everybody,
Another way to view two functions in the same graphic without using the command 'plot'?
Thanks a lot,
Mariana

采纳的回答

Walter Roberson
Walter Roberson 2012-7-24
Yes. "hold on" works for most graphic routines. (There are some graphic routines which are defined to open their own figure.)
  3 个评论
Mariana
Mariana 2012-7-25
编辑:Walter Roberson 2012-7-25
Walter,
I get it, but now i want to label a point.. my codes are:
>> hold on;
>> x1=-5:5;
>> x2=-2/3+2/3*x1;
>> plot(x1,x2,'Color',[.7 0 0]);
>> hold off;
If i want to label the point (4,4) what codes to write?.. Thanks for your help!
Mariana

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by