how to change the xtick of the picture into 10 power format?

조회 수: 8 (최근 30일)
Mudasir Ahmed
Mudasir Ahmed 2016년 11월 25일
댓글: Mudasir Ahmed 2016년 11월 25일
hi
I plotted one graph which is attached herewith. Now I want to change the x-axis ticks into 10 power format. for e.g
xticks=[-30 -25 -20 -15 -10 -5 0 5 10]
into
xticks=[10^-30 10^-25 10^-20 10^-15 10^-10 10^-5 10^-0 10^5 10^10]
when I manually change it, it shows '^' or 'E' sign, but I need in power format like 10 power -30. kindly help me I will be highly thankful to you
regards
mudasir

채택된 답변

Adam
Adam 2016년 11월 25일
doc XTickLabel
You can set the labels to be whatever you want, using sprintf to format as you choose also.
  댓글 수: 10
Adam
Adam 2016년 11월 25일
You appear to have two axes in the same figure on top of each other there.
Just create 1 axes, keep its handle and explicitly use that handle in plotting and other instructions.
Mudasir Ahmed
Mudasir Ahmed 2016년 11월 25일
Bur sir still ^ sign is there. i need -30 in superscript

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by