Respuesta aceptada

Alberto Cuadra Lara
Alberto Cuadra Lara el 30 de Mayo de 2022
Editada: Alberto Cuadra Lara el 30 de Mayo de 2022
Hello Steven,
To display decimals point you can use xtickformat and ytickformat for the x and y axis, respectively. Also, you may want to remove the exponent from the axis.
f = figure;
ax = gca;
x = linspace(0, 1e3);
y = linspace(-3, 3) * 1e-3;
plot(x,y);
% Set format to decimals
ytickformat('%.3f');
% Remove exponent
ax.YAxis.Exponent = 0;

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 30 de Mayo de 2022

Comentada:

el 30 de Mayo de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by