Created
November 30, 2018 14:42
-
-
Save gognjanovski/f5fc90b1faeb2ce8c3ae90405a21fa96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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