plotting problem

3 次查看(过去 30 天)
sam arf
sam arf 2012-2-21
编辑: Cedric 2013-10-19
I have some problem with plotting, the listing is like this:
for d=1:1:100;
p=10^(-10);
a(d)=100*(10^6)*d/(2*(10^8)*12208);
u_gb(d)=(1-p)/(1+2*a(d)*p);
x(d)=d;
end
plot(x,u_gb);
those u_gb has very small data, its between 0.999999999899181 to 0.999999999899992. if I plot it, we will see straight horizontal line in the graph. Because of that, we can't see that u_gb 's value has changed
How to make this line more tilted or oblique, so that we can see that the data of u_gb is changed

采纳的回答

G A
G A 2012-2-21
try plot(x,1-u_gb,'.k');

更多回答(2 个)

Ali Can
Ali Can 2012-2-21
It may help to make the data points visible in the graph.
plot(x,u_gb,'.-')

Kevin Holst
Kevin Holst 2012-2-21
Have you tried just adjusting the y-axis scale?
doc axis
  1 个评论
sam arf
sam arf 2012-2-22
yes, but still, it did't change the graph

请先登录,再进行评论。

类别

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by