필터 지우기
필터 지우기

adding limits in scatter plot

조회 수: 4 (최근 30일)
Prasad Joshi
Prasad Joshi 2022년 1월 18일
댓글: Prasad Joshi 2022년 1월 18일
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

채택된 답변

Voss
Voss 2022년 1월 18일
line([min(X) max(X)],[3100 3100]);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by