Location: The cardiac Na+ /K+ ATPase: An updated, thermodynamically consistent model @ 9a50ca6b7625 / Code / MATLAB / code / dataset_functions / load_Nakao_Gadsby_V.m

Author:
AnandR <a.rampadarath@auckland.ac.nz>
Date:
2019-02-15 15:17:13+13:00
Desc:
Added a note on curation and annotation at the end of the paper.
Permanent Source URI:
https://staging.physiomeproject.org/workspace/578/rawfile/9a50ca6b76253e9dd80fdbd00c457887ff7a7839/Code/MATLAB/code/dataset_functions/load_Nakao_Gadsby_V.m

function struct_output = load_Nakao_Gadsby_V(file_path)

file_id = fopen(file_path);
data = textscan(file_id,'%s','delimiter','\n');
fclose(file_id);

num_Nae_conc = 4;

data = data{1};
num_lines = length(data);
num_values = (num_lines-1)/num_Nae_conc;

struct_output = struct('V_m',transpose((-120:20:60))/1000,...
    'cyc_Nae1p5',zeros(num_values,1),...
    'cyc_Nae50',zeros(num_values,1),...
    'cyc_Nae100',zeros(num_values,1),...
    'cyc_Nae150',zeros(num_values,1));

for i_line = 1:num_values
    line = data{1+num_Nae_conc*i_line};
    line_split = regexp(line,',','split');
    struct_output.cyc_Nae1p5(i_line) = str2double(line_split(2));
    struct_output.cyc_Nae50(i_line) = str2double(line_split(3));
    struct_output.cyc_Nae100(i_line) = str2double(line_split(4));
    struct_output.cyc_Nae150(i_line) = str2double(line_split(5));
end

end