Loading matlab/bfield_library_jdl/EFIT_routines/readg_g3d_simple.m +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ if length(line) < 60 % Try getting two integers from the end twoIntsRev = sscanf(fliplr(strtrim(line)),'%d %d',2); g.mh = str2double(fliplr(num2str(twoIntsRev(1)))); g.mw = str2double(fliplr(num2str(twoIntsRev(1)))); g.mw = str2double(fliplr(num2str(twoIntsRev(2)))); else % Try formatted read g.ecase = sscanf(line(1:8),'%8s'); Loading Loading
matlab/bfield_library_jdl/EFIT_routines/readg_g3d_simple.m +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ if length(line) < 60 % Try getting two integers from the end twoIntsRev = sscanf(fliplr(strtrim(line)),'%d %d',2); g.mh = str2double(fliplr(num2str(twoIntsRev(1)))); g.mw = str2double(fliplr(num2str(twoIntsRev(1)))); g.mw = str2double(fliplr(num2str(twoIntsRev(2)))); else % Try formatted read g.ecase = sscanf(line(1:8),'%8s'); Loading