Why won't one of my plot points show

3 次查看(过去 30 天)
In this figure h_t won't show itself
x = 0.5
f = exp(-0.5*x^2);
t = 0.5;
g_t = exp(-(x-3*t)).^2;
h_t = exp(-x.^2+t).^2;
figure
hold all
plot(f,'r')
plot(g_t)
plot(h_t,'g')
xlim([0 2])
grid off
I've tried h_t outside on it's own and it gives a point but it won't show on this figure.
And is there a way to make the points bigger or easier to see?

采纳的回答

Michael Haderlein
Michael Haderlein 2014-10-28
The point is there, it's just difficult to see this single pixel. If you really want to plot single points, better use different markers such as
figure
hold all
plot(f,'ro')
plot(g_t,'bo')
plot(h_t,'go')
xlim([0 2])
grid off
  1 个评论
kkocak
kkocak 2016-7-4
These points were visible without marker specifications before 2014 releases. I wonder what did Matworks change..

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by