필터 지우기
필터 지우기

How do I change the figure scale from pixels to meters?

조회 수: 3 (최근 30일)
EngStudent
EngStudent 2013년 4월 16일
How do I make sure that the data I enter in matlab is in meter and also all the figure scales are in meter

채택된 답변

Walter Roberson
Walter Roberson 2013년 4월 16일
Look at the "Units" property for figures and for axes.
Note, though, that the axes Units property does not affect the interpretation of coordinates such as for plot(): plot() always uses "data" units. If you want "data" units to have physical meaning, then you need to use the "axis" call, or set axes XLim and YLim properties carefully. See also axes InnerPosition and OuterPosition properties.
Note: if you are trying to have lines drawn on the screen be a certain physical length (e.g., you want the user to be able to put a ruler on the screen and have a line come out the same length as it would on the ruler) then that is difficult to do properly with accuracy, and simply cannot be done accurately on some displays.
  댓글 수: 2
EngStudent
EngStudent 2013년 4월 16일
would if be possible to make all the figure scale a ratio of 1meter:3780 pixels?
Walter Roberson
Walter Roberson 2013년 4월 16일
Why 3780 ? How many dots per screen millimeter were you thinking ?
3780 is slightly off 100 dots per inch. 105 dots per inch would be 3750 pixels.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by