HOW TO PLOT AN ECONOMIC SERIES

Hi everybody, please I have the dataset on excel and I want to plot variables, I did not find how? I attached my dataset. thanks

1 Comment

You didn't attach anything.
doc xlswrite
is usually used to read excel data in.

Sign in to comment.

 Accepted Answer

X = xlsread('../../Downloads/mexico_data_1900_2005.xls');
plot(X(:,1), X(:,2:end))

2 Comments

it works thanks
how if we want to make four subplots and also having the years at the X axis?

Sign in to comment.

More Answers (0)

Asked:

on 20 Nov 2015

Commented:

on 20 Nov 2015

Community Treasure Hunt

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

Start Hunting!