How to change units axes in a plot

조회 수: 15 (최근 30일)
Samuel
Samuel 2013년 1월 30일
Hello, perhaps a silly question but searching around, I couldn't find anything, so here goes- I have a plot of stress vs strain in Pascals vs m/m. However, I wanted to show the plot in units of MPa vs microstrain(um/um). Is there a straightforward way to change these units during plotting (versus modifying actual data)? I looked through the figure palette and property editor but didn't find anything other than modifying individual data values.
Any help will be appreciated. Thanks in advance. sam

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 30일
set(gca,'units','inches')
  댓글 수: 2
Samuel
Samuel 2013년 1월 30일
Thanks for the input. So how would i implement it for just the y axis, for example?
plot(func)
set(gca,'units','mPa')?
how would i set up so that only the y axis is effected?
thanks.
Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 30일
I don't know what is mPa, but if you want to know what are allowed units type
set(gca,'units')

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by