adding limits in scatter plot

5 vues (au cours des 30 derniers jours)
Prasad Joshi
Prasad Joshi le 18 Jan 2022
Commenté : Prasad Joshi le 18 Jan 2022
I am looking to add line for y axis corresponding to 3100 means below that value all are acceptable values ...the code is as follows
clear all
close all
clc
A=xlsread('ABC.xlsx')
X=(A(:,1))
Y=(A(:,2))
scatter(X,Y,'filled','r')
for i=1:6
text(X(i),Y(i),sprintf('(%.0f)',Y(i)))
end
Any input it will be highly helpful....Thank you in advance

Réponse acceptée

Voss
Voss le 18 Jan 2022
line([min(X) max(X)],[3100 3100]);
  1 commentaire
Prasad Joshi
Prasad Joshi le 18 Jan 2022
Thank you Benjamin

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by