predicting CO2 using given data

2 ビュー (過去 30 日間)
Ash Antony
Ash Antony 2019 年 11 月 13 日
回答済み: the cyclist 2019 年 11 月 13 日
I have data(in excel) for atmospheric CO2 in Antarctic from 1994-2009.
I used the very basic way to plot the time series, and now I want to predict the CO2 ration , maybe for 5 years.
please help.
clear all;
datas = xlsread('atmos.xlsx');
x = datetime(datas(:,1), 'ConvertFrom', 'Excel', 'Format', 'MM.yyyy');
y = datas(:,2);
plot(x,y)
excel data sheet is atatched.
  1 件のコメント
David Hill
David Hill 2019 年 11 月 13 日
What is CO2 ration?

サインインしてコメントする。

回答 (1 件)

the cyclist
the cyclist 2019 年 11 月 13 日
Do you have the Statistic and Machine Learning Toolbox? If so then you could fit a simple linear model to your data like this:
mdl = fitlm(days(x-x(1)),y)
You could also fit a more complicated model, perhaps with seasonality, but let's start there.

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by