can you help me to change this plot to nano meter scale ! i want x multiply by 10^-6

1 visualización (últimos 30 días)
syms x;
x=1:10
v(x)=1./(1+2*(x.^2))
semilogy(x, v(x))
  5 comentarios
Aalaa Abu alrob
Aalaa Abu alrob el 11 de Oct. de 2018
Oh Ok ..thank for your effort ..someone understand exactly what i mean ..and i get answer for my question This thing easy just in math ..but not in matlab

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 10 de Oct. de 2018
If you simply want to label the x-axis, without changing anything else, try this:
t = linspace(0, 2*pi);
s = sin(t);
figure
plot(t, s)
grid
xt = get(gca, 'XTick'); % Current Tick Values
set(gca, 'XTick',xt, 'XTickLabel',xt*1E-6) % Current Tick Values With New Tick Labels
  4 comentarios
Aalaa Abu alrob
Aalaa Abu alrob el 11 de Oct. de 2018
Thank ..thank I understand and do it Thank for your effort

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by