Skip to content
Snippets Groups Projects
Commit 6246f3ab authored by Kajsa Tunedal's avatar Kajsa Tunedal
Browse files

fixed bug in loadData that was introduced in newer matlab versions

parent 1f118b04
No related branches found
No related tags found
No related merge requests found
function [data] = loadData()
%% data from the framingham heart study, https://doi.org/10.1161/01.CIR.96.1.308
SBPData = readmatrix('SBP_data.csv');
SBPData = readmatrix('SBP_data.csv','Range','A3:H20');
data.SBP = SBPData(:,2:2:end);%groups 1-4 y-axis values
DBPData = readmatrix('DBP_data.csv');
DBPData = readmatrix('DBP_data.csv','Range','A3:H20');
data.DBP = DBPData(:,2:2:end);%groups 1-4 y-axis values
MAPData = readmatrix('MAP_data.csv');
MAPData = readmatrix('MAP_data.csv','Range','A3:H20');
data.MAP = MAPData(:,2:2:end);%groups 1-4 y-axis values
PPData = readmatrix('PP_data.csv');
PPData = readmatrix('PP_data.csv','Range','A3:H20');
data.PP = PPData(:,2:2:end);%groups 1-4 y-axis values
data.time = 30:5:80;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment