Plotting a graph row by row from a table using matlab (Instead of column) -


i have data set looks below , want plot them graph. have seen couple of examples online graphs , plotting column column , data source different matrix file.

what trying achieve plot multiple graphs on same figure using data set below.

enter image description here final product trying achieve image below. can kind enough guide or point me in right direction ? enter image description here c1990 stands carbon emission yr 1990.

so far able plot following changes data source, rearranging , performing transpose operation. enter image description here

here starting point.

data = rand(5, 20); // random data 5 countries countries = {'afghanistan', 'argentina', 'australia', 'austria', 'belgium'}; // cell array containing names of countries  h = zeros(size(countries));  hold on  h = plot(data', 'marker', '.', 'linewidth', 1.0, 'markersize', 16);  legend(h, countries) 

output:

enter image description here

this answers question how plot multiple graphs (by row). polish plot have play different properties of graphs , axes.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -