필터 지우기
필터 지우기

Hi community, I am ploting a figure and i want to center the figure in the plot

조회 수: 1 (최근 30일)
When i plot my figure it apears like a little dot with gigantic scales, I want that when the plot opens up, it opens exactly where the figure is. Here is the example:
plot(d(:,1),d(:,2),'.')
d = 1.0e+03 *
0.0010 0
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0010 -0.0000
0.0009 -0.0000
0.0009 -0.0000
0.0009 -0.0000
0.0009 -0.0000
0.0009 -0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0007 0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0007 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0006 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0005 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0004 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0003 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0002 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0001 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0.0000 -0.0000
0 0
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0000 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0001 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0002 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0003 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0004 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0005 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0006 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0007 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0008 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0009 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0.0000
0.0010 0
9.9619 0.8716

채택된 답변

Image Analyst
Image Analyst 2014년 4월 5일
What's up with the last value? It's like 10,000 times as big as any of the other values. So all your values are crammed into a microscopic area near the origin because it has to expand the axes to be able to show your last value of d. Are you sure that's how you want to do it? If that value is not there, it does plot stuff you can see.

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 4월 5일
편집: Azzi Abdelmalek 2014년 4월 5일
Just use
plot(d(:,1),d(:,2))
  댓글 수: 4
Jacob
Jacob 2014년 4월 5일
Actually plot(d(1:end-1,1),d(1:end-1,2),'.') makes more sense! Thank you very much

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

카테고리

Help CenterFile Exchange에서 Airfoil tools에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by