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?

 Akzeptierte Antwort

KSSV
KSSV am 29 Mai 2020

0 Stimmen

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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018b

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by