Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gognjanovski/f5fc90b1faeb2ce8c3ae90405a21fa96 to your computer and use it in GitHub Desktop.
Save gognjanovski/f5fc90b1faeb2ce8c3ae90405a21fa96 to your computer and use it in GitHub Desktop.
% Load Population Data
statistics_data = getCsvData('swe_pop_2007_2017.csv');
% Convert cell to matrix
X = cell2mat(statistics_data(:,1));
y = cell2mat(statistics_data(:,2));
% Convert matrix values to double
X = double(X);
y = double(y);
hold on;
% Set the x-axis label
xlabel('Year');
% Set the y-axis label
ylabel('Population');
% Plot population data
plot(X, y, 'rx', 'MarkerSize', 10);
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment