How do I change the figure scale from pixels to meters?
2 ビュー (過去 30 日間)
古いコメントを表示
How do I make sure that the data I enter in matlab is in meter and also all the figure scales are in meter
0 件のコメント
採用された回答
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 件のコメント
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 Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!