


function to read hc, cc, theta and bb from scoord_params.dat file filename='/users/modellers/rito/Models/MEDINA/polcoms/scoord_params.dat'


0001 function scoord=read_scoord_params(filename) 0002 % function to read hc, cc, theta and bb from scoord_params.dat file 0003 % filename='/users/modellers/rito/Models/MEDINA/polcoms/scoord_params.dat' 0004 fid = fopen(filename); 0005 C = textscan(fid, '%f%*[^\n]'); 0006 fclose(fid); 0007 scoord.hc=C{1}(1); 0008 scoord.cc=C{1}(2); 0009 scoord.theta=C{1}(3); 0010 scoord.bb=C{1}(4); 0011 return