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.
final product trying achieve image below. can kind enough guide or point me in right direction ?
c1990 stands carbon emission yr 1990.
so far able plot following changes data source, rearranging , performing transpose operation.
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:
this answers question how plot multiple graphs (by row). polish plot have play different properties of graphs , axes.
Comments
Post a Comment