plotting problem

조회 수: 1 (최근 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');
  댓글 수: 1
sam arf
sam arf 2012년 2월 22일
thanks

댓글을 달려면 로그인하십시오.

추가 답변 (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