PLOT_LINES

Plots vertical lines at points defined on the x-axis.

Vous suivez désormais cette soumission

plot_lines(xin) - Plots vertical lines at points defined on the x-axis using red solid lines and the current y-axis limits using a single line handle

plot_lines(xin,[a b]) - Plots the lines from a to b

plot_lines(xin,[],lntype) - Plots the lines using the current y-axis limits using the line type deined by lntype

h = plot_lines(xin,[a b],lntype) - Returns the handle to the vertcal lines

Ex.)
figure(1);clf;
plot(randn(1,1000));
x = [10 170 300 450 600 800 990];
hold on;
plot_lines(x,[],'b:');

Citation pour cette source

Sww (2026). PLOT_LINES (https://fr.mathworks.com/matlabcentral/fileexchange/4520-plot_lines), MATLAB Central File Exchange. Extrait(e) le .

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0