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