Doubt in plot, help me

Hello guys, how are u? I'm a doubt in plot graphics in matlab. How i put a line in axis x in matlab, 'cause when i put values in variables x and y, dont have a line in axis x. For example: Look the picture:
I want so:
Help me pelase

回答(1 个)

Try this
grid on;
line(xlim, [0,0], 'Color', 'k', 'LineWidth', 3);

类别

帮助中心File Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by