Hi. i have two columns with too much raws as each column (about 1.300.000 raws) and i want the plot look like as below, it included two different type of plots in one graph. can you help me how to do that?

 채택된 답변

KSSV
KSSV 2020년 5월 29일

0 개 추천

The plot looks like a regression plot read about plotregression. If you have two data points and want to plot them read about plot and holdon.

댓글 수: 7

Hung Tat Ho
Hung Tat Ho 2020년 5월 29일
thank you! can you help me with a sample code for this?
KSSV
KSSV 2020년 5월 29일
Sure...but what data you have? You can attach your data here.
Hung Tat Ho
Hung Tat Ho 2020년 5월 29일
Thanks Pro, this is my data, it too much.
KSSV
KSSV 2020년 5월 29일
편집: KSSV 2020년 5월 29일
data = xlsread("data2.xlsx") ;
T = data(:,1) ; % temperature
R = data(:,2) ; % rainfal
figure
plot(T,R,'.r')
Hung Tat Ho
Hung Tat Ho 2020년 5월 29일
thank you so much KSSV
KSSV
KSSV 2020년 5월 29일
Thanks is accepting the answer :)
Hung Tat Ho
Hung Tat Ho 2020년 5월 29일
yes, i accepted :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

릴리스

R2018b

태그

질문:

2020년 5월 29일

댓글:

2020년 5월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by