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

5 Ansichten (letzte 30 Tage)
Mudasir Ahmed
Mudasir Ahmed am 25 Nov. 2016
Kommentiert: Mudasir Ahmed am 25 Nov. 2016
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

Akzeptierte Antwort

Adam
Adam am 25 Nov. 2016
doc XTickLabel
You can set the labels to be whatever you want, using sprintf to format as you choose also.
  10 Kommentare
Adam
Adam am 25 Nov. 2016
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 am 25 Nov. 2016
Bur sir still ^ sign is there. i need -30 in superscript

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by