How can I increase the precision of the y axis?

6 views (last 30 days)
Hi,
I've got the following plots and I want to increase the precision on the Y-axis. I want to see more values on the axis. Thanks!
Vi=A.*sin(2.*pi.*f.*t);
axes(handles.axes1);
plot(t,Vi,'color','red','LineWidth',2);
grid on;
title('Input signal [Vi]','Fontsize',15);
xlabel('time [ms]');
ylabel('Amplitude [V]');
Untitled.png

Accepted Answer

Stephen23
Stephen23 on 7 Dec 2018
yticks(-5:5)

More Answers (0)

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!