How to change time in plot?

조회 수: 18 (최근 30일)
Krystian Wiewiór
Krystian Wiewiór 2018년 6월 1일
답변: Krystian Wiewiór 2018년 6월 1일
Hello, How to create new value "10^2" instead of "10^4" in the plot? Thank you for answer, below I send a picture.
  댓글 수: 2
Ameer Hamza
Ameer Hamza 2018년 6월 1일
Do you just want to replace 10^4 with 10^2 or do you want to actually change your graph?
Krystian Wiewiór
Krystian Wiewiór 2018년 6월 1일
In my exercise I need make a plot for registration of time: 100s. If is it possible, you might show me two option and I will decide at least.

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

채택된 답변

Ameer Hamza
Ameer Hamza 2018년 6월 1일
편집: Ameer Hamza 2018년 6월 1일
If you are just interested in scaling down the x-values then try these lines
ax = gca;
ax.Children.XData = ax.Children.XData/100;
Run this line after creating the original figure.
  댓글 수: 2
Krystian Wiewiór
Krystian Wiewiór 2018년 6월 1일
It works, I made it /1000. I am really new at matlab, is it possible to make maximum 100[s] without this empty area till 120[s]?
Ameer Hamza
Ameer Hamza 2018년 6월 1일
Yes, you can easily change the limit,
ax = gca;
ax.XLim = [0 100];

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

추가 답변 (1개)

Krystian Wiewiór
Krystian Wiewiór 2018년 6월 1일
Thank you, it is done :) Greetings

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by