How can I specify millimetric spaces

3 ビュー (過去 30 日間)
Ali Deniz
Ali Deniz 2021 年 4 月 2 日
コメント済み: Image Analyst 2021 年 4 月 3 日
I have a data list and in the graph I will plot by using this datas, I have to scale axes in millimetric spaces. For example; I have MPa values in y direction and in every 140 MPa there should be 25 mm. Part of the question which includes the scaling order is "Use a scale of 25 mm 140 MPa and 25 mm= 0.05 mm/mm. Redraw the elastic region, using the same stress scale but a strain scale of 25 mm= 0.001 mm/mm." How can I do that? I will be grateful if you could help me.
  1 件のコメント
darova
darova 2021 年 4 月 3 日
Can't you just divide your data by 25?

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2021 年 4 月 3 日
If you have an array y where the value is in MPa, and you want it in mm, you need to multiply by the scaling factor
yInMm = yInMPa * 25 / 140;
Now if yInMPa is 140, yInMm will be 25.
I don't know what the meaning of mm/mm is. Please explain.
  2 件のコメント
Ali Deniz
Ali Deniz 2021 年 4 月 3 日
mm/mm is the unit of elongation. But my question is about scaling the graphics' axes. I want to 25 mm space between every +0.05 values in x direction.(Strain). And similarly, I want to 25 mm space between every 140 +MPa in y direction (Stress). Thank you.
Image Analyst
Image Analyst 2021 年 4 月 3 日
The spacing depends on the figure size on your monitor. If you change it, the graph will be the same but the distance between tick marks will change. I think there is a way to get the screensize, both physically (but I don't know how) and in terms of pixels:
>> get(0, 'screensize')
ans =
1 1 1920 1080
There is also a way to specify the paper printout size if you're printing onto paper but I don't know how to do that since I never do it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStress and Strain についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by