TEXTSCAN Reading After a specified term(or a row) and writing matrix.

5 views (last 30 days)
Hi,
I have text formatted file (with gid extension)..that includes the combustion simulation analaysis results of AVL BOOST Programme.
I pasted the file text script..to down side. The data that I want to read is exactly begans after "END".(or it begans after row 248 , but this 248 can be changed).
All numeric data has seperated with spaces.
What is the best way of coding with textscan.
I achived to read with fopen and textscan but ı could not seperate and could not write the values to matrices..
if needed ı can attach the file.
Best Regards.
.....
'kg', &
'W/(m^2.K)', &
'K']
END
0.20000000E+001 0.12000000E+000 0.20000000E+004 0.16666667E+002 0.60000000E-001 0.10000000E+006 0.29800000E+003 0.14700000E+002 0.42800000E+008 0.40000000E+001 0.17533621E-002 0.71608356E+001 0.65688145E+001 0.59202109E+000 0.00000000E+000 0.91653438E+002 0.19195851E+002 0.82603593E+001 0.17300456E+001 0.28672609E+003 0.28672609E+003 0.31256757E+003 -0.34741124E+001 0.18815201E+001 -0.15925923E+001 0.87534279E+001 0.15349978E+001 0.80977912E+000 0.15349978E+001 0.80977912E+000 0.15349978E+001 0.80977912E+000 0.10000001E-003 0.31458000E-002 0.31458000E-002 0.00000000E+000 0.52430000E-001 0.52430000E-001 0.00000000E+000 0.42800003E+004 0.71333339E+005 0.42250371E+004 0.70417286E+005 0.42250371E+004 0.42249781E+004 0.70416301E+005 0.42249781E+004 0.95974582E+000 0.98715813E+000 0.98714433E+000 -0.13262434E+004 -0.22104057E+005 -0.53544921E+003 -0.46655255E+003 -0.32424168E+003 0.60000000E+003 0.58000000E+003 0.53000000E+003 0.40000000E+003 0.14778442E+008 0.73047348E+001 0.54356653E+006 0.27261143E+001 0.33865611E+006 0.35071122E+003 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.30684455E+002 0.20873779E+001 0.15126859E+002 0.13729218E+000 0.80659150E-004 0.73206671E-006 0.14396202E-002 0.13996933E-004 0.10806299E-002 0.18828965E+001 -0.50973045E-003 -0.52421622E+003 0.00000000E+000 0.18500000E+002 -0.20145005E+003 0.00000000E+000 -0.20145005E+003 0.00000000E+000 0.16666668E-002 -0.21301305E+002 0.57714737E+002 0.19725924E+004 0.10984334E+002 0.28416423E+004 0.36420629E+001 0.10000001E-003 0.68667387E+003 0.11081067E+004
0.30000000E+001 0.18000000E+000 0.20000000E+004 0.16666667E+002 0.60000000E-001 0.10000000E+006 0.29800000E+003 0.14700000E+002 0.42800000E+008 0.40000000E+001 0.17533621E-002 0.71956240E+001 0.66036029E+001 0.59202109E+000 0.00000000E+000 0.92138834E+002 0.19297512E+002 0.82603593E+001 0.17300456E+001 0.28533986E+003 0.28533986E+003 0.31092093E+003 -0.34711756E+001 0.18830045E+001 -0.15881712E+001 0.87837952E+001 0.15349978E+001 0.81199378E+000 0.15349978E+001 0.81199378E+000 0.15349978E+001 0.81199378E+000 0.10000001E-003 0.31458000E-002 0.31458000E-002 0.00000000E+000 0.52430000E-001 0.52430000E-001 0.00000000E+000 0.42800003E+004 0.71333339E+005 0.42231876E+004 0.70386461E+005 0.42231876E+004 0.42231292E+004 0.70385487E+005 0.42231292E+004 0.95786616E+000 0.98672601E+000 0.98671235E+000 -0.13294226E+004 -0.22157043E+005 -0.53261505E+003 -0.46402652E+003 -0.33278099E+003 0.60000000E+003 0.58000000E+003 0.53000000E+003 0.40000000E+003 0.14546381E+008 0.74661516E+001 0.49871002E+006 0.24130406E+001 0.33737639E+006 0.35068707E+003 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.30682644E+002 0.20872547E+001 0.19939461E+002 0.18547832E+000 0.10688389E-003 0.99424169E-006 0.19076950E-002 0.19009758E-004 0.17069975E-002 0.19148971E+001 -0.50811289E-003 -0.52258674E+003 0.00000000E+000 0.18500000E+002 -0.29566251E+003 0.00000000E+000 -0.29566251E+003 0.00000000E+000 0.16666668E-002 -0.21294007E+002 0.59265391E+002 0.19622984E+004 0.11065411E+002 0.28381663E+004 0.42371400E+001 0.10000001E-003 0.68081764E+003 0.11097274E+004
0.40000000E+001
...

Accepted Answer

per isakson
per isakson on 5 May 2012
Edited: per isakson on 10 Jan 2013
This file poses two problems when using TEXTSCAN.
  1. The number of headerlines is not known beforehand.
  2. The number of columns is not known beforehand.
There are many alternative ways to read this file. (If speed is important one might use fread.) One solution with textscan is shown below. The approach is
  1. read the complete file and store each row as one string
  2. find the row with the keyword, "END", which indicates the end of the header and delete the header
  3. determine the number of columns and the number of rows
  4. convert the cell array of strings to a string array, which can be read by textscan. textscan reads by columns and thus the array need to be permuted. textscan swallows the newline characters and thus we need to add new ones.
  5. generate a format string and read the string array
  6. convert the cell array, which textscan returns, to a numerical array.
I've added a variant based on fread. The basic approach is the same.
  1. read the complete file to a character column vector and permute it to a row
  2. find the position of the keyword, END. To be sure to find the right END: search for [new_line, any_space, END, any_space, new_line]
  3. catch the data part of the character row
  4. extract the first row of data and count the columns
  5. create a format string and read the character row with textscan
The textscan variant takes care of the space_characters, but requires code to "unpack" cell arrays.
With the fread variant there is no need to "unpack" cell arrays, but code is needed to take care of the space_characters. Especially, char(13), must not be overlooked.
--- The End ---
function M = Answer( )
fid = fopen( 'cssm.txt', 'r' );
cac = textscan( fid, '%s', 'Delimiter', '\n' );
sts = fclose( fid );
ixe = find( strncmp( 'END', cac{1}, 3 ), 1, 'last' );
buf = cac{1}( ixe+1:end, : );
ncol = numel( regexp( buf{1}, ' +', 'split' ) );
nrow = size( buf, 1 );
str = cat( 1, permute(char(buf),[2,1]), repmat(sprintf('\n'),1,nrow) );
frmt = repmat( '%f', 1, ncol );
cac = textscan( str, frmt );
M = [ cac{:} ];
end
and the variant based on fread
function M = Answer( )
fid = fopen( 'cssm.txt', 'r' );
str = permute( fread( fid, '*char' ), [2,1] );
sts = fclose( fid );
ixe = regexp( str, '\n\s*END\s*\n', 'end' );
buf = str( ixe+1 : end );
ix2 = regexp( buf, '\d\s*\n', 'start', 'once' );
ncol = numel( regexp( strtrim( buf(1:ix2) ), ' +', 'split' ) );
frmt = repmat( '%f', 1, ncol );
cac = textscan( buf, frmt );
M = [ cac{:} ];
end
  4 Comments
Timothy Devenport
Timothy Devenport on 21 May 2015
Hello per isakson,
I have a similar problem to Ozener, in that I have a file similar to him I need to read, except every now and then I need to skip some lines. Can you help me with that?
Regards
per isakson
per isakson on 21 May 2015
Hello Timothy,
Ask a new question and include more details on your problem. You might want to attach a sample file.

Sign in to comment.

More Answers (3)

Walter Roberson
Walter Roberson on 4 May 2012
Is it the very first END line in the input? If so, does the very first line of the file always start the same way? If it does then you can use the CommentStyle with a cell array of strings pair to mark that initial section as being comment to be ignored. Then after that the individual lines appear to be matchable with
thisfmt = repmat('%f', 1, 99);
also I would guess you would want to use the CollectOutput option.

Orkun OZENER
Orkun OZENER on 5 May 2012
Dear Mr.Roberson ,
Thanks for your answer,
i- For now END is exactly located at the row 249. so I have to read the rows 250 and so on...
ii- I solved reading problem with a code from matlab central "readline" .But it works for specified lines. ıt works for now. But the END place can be changed in my simulations in the future time.
So for the following days I have to write a code that finds the line number of END and reads the data after it.
ii- Now the problem is seperating the cell array to numeric values. I readed the lines 250 to 252 .(No Problem in here)
Vs=readline('kEG1____1.gid',[250:252]);
It results as 3x1 cell.
But I could not split (seperate to data) in to numeric cells. I used
Dear Mr.Roberson ,
Thanks for your answer,
i- For now END is exactly located at the row 249. so I have to read the rows 250 and so on...
ii- I solved reading problem with a code from matlab central "readline" .But it works for specified lines. ıt works for now. But the END place can be changed in my simulations in the future time.
So for the following days I have to write a code that finds the line number of END and reads the data after it.
ii- Now the problem is seperating the cell array to numeric values. I readed the lines 250 to 252 .(No Problem in here)
Vs=readline('kEG1____1.gid',[250:252]);It results as 3x1 cell.
But I could not split (seperate to data) in to numeric cells. I used
C = cell2mat(Vs) %
it resuls as a char. I could not obtain a numeric matrix.
I am pasting whole gid.(text) file to next answer.If needed I can mail.
Best Regards.

Orkun OZENER
Orkun OZENER on 5 May 2012
EGIN
id_cal_param = 0.8
blowwws = 0.0055
shppp = 2.3
Comb_Param = 0.9
Disp_Parameter = 1
Pre_Comb_Param = 0.7
Tur_Parameter = 1
comb_ex_air_de = 0.2
SOOT_CON = 60
SOOT_PRO = 1
co_kin = 1.678
NOX_Kin = 1
NOX_Post = 0.564
inj_pres = 1200
AFR = 37.68
AFR_C1 = 37.68
AFR_C10 = 37.68
AFR_C2 = 37.68
AFR_C3 = 37.68
AFR_C4 = 37.68
AFR_C6 = 37.68
AFR_C7 = 37.68
AFR_C8 = 37.68
AFR_inpipe = 37.68
F_Flow = 1.5
F_Inj = 25
T_ExVal_O = 575
T_Exh_Man = 440
T_Exh_Plenum = 430
T_Plenum_SB2 = 420
T_SB2 = 412
boost_temp = 39.9
P_ExVal_O = 6
P_Exh_Man = 3470
P_Exh_Plenum = 3470
P_Plenum_SB2 = 3450
P_SB2 = 3437.5
A_Flow = 13.1075
Inj_Diam = 120
Liner_Calib = 1.2
Head_Calib_Fac = 1.2
Piston_Calib_F = 1.2
boost_pres = 2
Sig_Main_Off = -1
Sig_Main_On = -10
Sig_Pre_Off = -20
Sig_Pre_On = -24.8
Pres_Dat = RP136_dyn1prsC4.dat
CHANNELNAME = ['CYCLE', &
'ENDOFCYCLE-TIME', &
'CYCLEAVERAGEDSPEED', &
'CYCLEFREQUENCY', &
'CYCLEPERIOD', &
'PRESSURE-AMB', &
'TEMPERATURE-AMB', &
'A/F-RATIO-STOICH_SHP', &
'LOWER-HEAT-VALUE_C', &
'NBR-OF-CYLINDERS_GEO', &
'ENGINE-DISPLACEMENT_GEO', &
'IMEP_PF', &
'BMEP_PF', &
'FMEP_PF', &
'AMEP_PF', &
'TORQUE_PF', &
'POWER_PF', &
'FRICTIONTORQUE_PF', &
'FRICTIONPOWER_PF', &
'ISFC1_PF', &
'ISFC2_PF', &
'BSFC_PF', &
'IMEP-EX_PF', &
'IMEP-IN_PF', &
'IMEP-GE_PF', &
'IMEP-HP_PF', &
'DELIVERYRATIO-AMB_G', &
'DELIVERYRATIO-INT_G', &
'AIRDELIVERYRATIO-AMB_G', &
'AIRDELIVERYRATIO-INT_G', &
'VOLUMETRICEFFICIENCY-AMB_G', &
'VOLUMETRICEFFICIENCY-INT_G', &
'TRAPPED-FUEL_MB', &
'MASS-ASPIRATED_MB', &
'AIRMASS-ASPIRATED_MB', &
'FUELMASS-ASPIRATED_MB', &
'MASS-ASPIRATED-PERS_MB', &
'AIRMASS-ASPIRATED-PERS_MB', &
'FUELMASS-ASPIRATED-PERS_MB', &
'FUEL-ENERGY_EB', &
'FUEL-ENERGY-PERS_EB', &
'RELEASED-ENERGY_EB', &
'RELEASED-ENERGY-PERS_EB', &
'GROSS-RELEASED-ENERGY_EB', &
'EFF-RELEASED-ENERGY_EB', &
'EFF-RELEASED-ENERGY-PERS_EB', &
'EFF-GROSS-RELEASED-ENERGY_EB', &
'ISO-VOL-COMB-EFFICIENCY_PF', &
'ENERGYBALANCE_EB', &
'EFFENERGYBALANCE_EB', &
'WALLHEATFLOW_H', &
'WALLHEATFLOWPERS_H', &
'PISTONWALLHEATFLOW_H', &
'HEADWALLHEATFLOW_H', &
'LINERWALLHEATFLOW_H', &
'PISTONTEMPERATURE_H', &
'HEADTEMPERATURE_H', &
'LINERTDCTEMPERATURE_H', &
'LINERBDCTEMPERATURE_H', &
'PEAKCYLINDERPRESSURE_C', &
'PEAKCYLINDERPRESSURE-CRANKANGLE_C', &
'PEAKPRESSURERISE_C', &
'PEAKPRESSURERISE-CRANKANGLE_C', &
'RES-GASCOMPRESS_C', &
'RES-GASCOMPRESS-CRANKANGLE_C', &
'RESIDUALGASMASSIN_MB', &
'RESIDUALGASMASSIN-PERS_MB', &
'RESIDUALGASMASSINTOCYL_MB', &
'RESIDUALGASMASSEX_MB', &
'RESIDUALGASMASSEXTOCYL_MB', &
'TOTALRESIDUALGAS-CONC_MB', &
'A/F-RATIO-UNBRND_SHP', &
'AIR-EXCESS-RATIO_SHP', &
'ACCUMULATEDNOX_M', &
'ACCUMULATEDCO_M', &
'ACCUMULATEDNOX-TIME_M', &
'ACCUMULATEDCO-TIME_M', &
'ACCUMULATEDNOX-MOLEFRACTION_M', &
'ACCUMULATEDCO-MOLEFRACTION_M', &
'ACCUMULATEDSOOT_M', &
'SWIRL_G', &
'BLOWBY_G', &
'BLOWBYENTHALPYFLOW_EB', &
'EVAPORATIONENERGY_EB', &
'COMPRESSIONRATIO_GEO', &
'ENTHALPYFLUX-IN_EB', &
'ENTHALPYFLUX-EX_EB', &
'PORTWALLHEATFLOW-IN_EB', &
'PORTWALLHEATFLOW-EX_EB', &
'TRAPPED-FUEL-PERS_MB', &
'COMBUSTIONSTART_C', &
'COMBUSTIONDURATION_C', &
'PEAKCYLINDERTEMPERATURE', &
'PEAKCYLINDERTEMPERATURE-CRANKANGLE', &
'PEAKTEMPERATUREBURNEDZONE_C', &
'PEAKTEMPERATUREBURNEDZONE-CRANKANGLE_C', &
'FUELMASSINJECTED', &
'MEAN-EFF-HTC_H', &
'MEAN-EFF-HTGASTEMP_H']
UNIT = ['-', &
's', &
'rpm', &
'Hz', &
's', &
'Pa', &
'K', &
'-', &
'J/kg', &
'-', &
'm3', &
'bar', &
'bar', &
'bar', &
'bar', &
'Nm', &
'kW', &
'Nm', &
'kW', &
'g/kWh', &
'g/kWh', &
'g/kWh', &
'bar', &
'bar', &
'bar', &
'bar', &
'-', &
'-', &
'-', &
'-', &
'-', &
'-', &
'kg', &
'kg', &
'kg', &
'kg', &
'kg/s', &
'kg/s', &
'kg/s', &
'J', &
'W', &
'J', &
'W', &
'J', &
'J', &
'W', &
'J', &
'-', &
'-', &
'-', &
'J/cycle', &
'W', &
'J/cycle', &
'J/cycle', &
'J/cycle', &
'K', &
'K', &
'K', &
'K', &
'Pa', &
'deg', &
'Pa/deg', &
'deg', &
'Pa', &
'deg', &
'kg', &
'kg/s', &
'kg', &
'kg', &
'kg', &
'-', &
'-', &
'-', &
'g/kWh', &
'g/kWh', &
'kg/s', &
'kg/s', &
'-', &
'-', &
'g/kWh', &
'-', &
'kg/cycle', &
'J/cycle', &
'J/cycle', &
'-', &
'W', &
'W', &
'W', &
'W', &
'kg/s', &
'deg', &
'deg', &
'K', &
'deg', &
'K', &
'deg', &
'kg', &
'W/(m^2.K)', &
'K']
END
0.20000000E+001 0.12000000E+000 0.20000000E+004 0.16666667E+002 0.60000000E-001 0.10000000E+006 0.29800000E+003 0.14700000E+002 0.42800000E+008 0.40000000E+001 0.17533621E-002 0.71608356E+001 0.65688145E+001 0.59202109E+000 0.00000000E+000 0.91653438E+002 0.19195851E+002 0.82603593E+001 0.17300456E+001 0.28672609E+003 0.28672609E+003 0.31256757E+003 -0.34741124E+001 0.18815201E+001 -0.15925923E+001 0.87534279E+001 0.15349978E+001 0.80977912E+000 0.15349978E+001 0.80977912E+000 0.15349978E+001 0.80977912E+000 0.10000001E-003 0.31458000E-002 0.31458000E-002 0.00000000E+000 0.52430000E-001 0.52430000E-001 0.00000000E+000 0.42800003E+004 0.71333339E+005 0.42250371E+004 0.70417286E+005 0.42250371E+004 0.42249781E+004 0.70416301E+005 0.42249781E+004 0.95974582E+000 0.98715813E+000 0.98714433E+000 -0.13262434E+004 -0.22104057E+005 -0.53544921E+003 -0.46655255E+003 -0.32424168E+003 0.60000000E+003 0.58000000E+003 0.53000000E+003 0.40000000E+003 0.14778442E+008 0.73047348E+001 0.54356653E+006 0.27261143E+001 0.33865611E+006 0.35071122E+003 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.30684455E+002 0.20873779E+001 0.15126859E+002 0.13729218E+000 0.80659150E-004 0.73206671E-006 0.14396202E-002 0.13996933E-004 0.10806299E-002 0.18828965E+001 -0.50973045E-003 -0.52421622E+003 0.00000000E+000 0.18500000E+002 -0.20145005E+003 0.00000000E+000 -0.20145005E+003 0.00000000E+000 0.16666668E-002 -0.21301305E+002 0.57714737E+002 0.19725924E+004 0.10984334E+002 0.28416423E+004 0.36420629E+001 0.10000001E-003 0.68667387E+003 0.11081067E+004
0.30000000E+001 0.18000000E+000 0.20000000E+004 0.16666667E+002 0.60000000E-001 0.10000000E+006 0.29800000E+003 0.14700000E+002 0.42800000E+008 0.40000000E+001 0.17533621E-002 0.71956240E+001 0.66036029E+001 0.59202109E+000 0.00000000E+000 0.92138834E+002 0.19297512E+002 0.82603593E+001 0.17300456E+001 0.28533986E+003 0.28533986E+003 0.31092093E+003 -0.34711756E+001 0.18830045E+001 -0.15881712E+001 0.87837952E+001 0.15349978E+001 0.81199378E+000 0.15349978E+001 0.81199378E+000 0.15349978E+001 0.81199378E+000 0.10000001E-003 0.31458000E-002 0.31458000E-002 0.00000000E+000 0.52430000E-001 0.52430000E-001 0.00000000E+000 0.42800003E+004 0.71333339E+005 0.42231876E+004 0.70386461E+005 0.42231876E+004 0.42231292E+004 0.70385487E+005 0.42231292E+004 0.95786616E+000 0.98672601E+000 0.98671235E+000 -0.13294226E+004 -0.22157043E+005 -0.53261505E+003 -0.46402652E+003 -0.33278099E+003 0.60000000E+003 0.58000000E+003 0.53000000E+003 0.40000000E+003 0.14546381E+008 0.74661516E+001 0.49871002E+006 0.24130406E+001 0.33737639E+006 0.35068707E+003 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.30682644E+002 0.20872547E+001 0.19939461E+002 0.18547832E+000 0.10688389E-003 0.99424169E-006 0.19076950E-002 0.19009758E-004 0.17069975E-002 0.19148971E+001 -0.50811289E-003 -0.52258674E+003 0.00000000E+000 0.18500000E+002 -0.29566251E+003 0.00000000E+000 -0.29566251E+003 0.00000000E+000 0.16666668E-002 -0.21294007E+002 0.59265391E+002 0.19622984E+004 0.11065411E+002 0.28381663E+004 0.42371400E+001 0.10000001E-003 0.68081764E+003 0.11097274E+004
0.40000000E+001 0.24000000E+000 0.20000000E+004 0.16666667E+002 0.60000000E-001 0.10000000E+006 0.29800000E+003 0.14700000E+002 0.42800000E+008 0.40000000E+001 0.17533621E-002 0.72054024E+001 0.66133813E+001 0.59202109E+000 0.00000000E+000 0.92275269E+002 0.19326087E+002 0.82603593E+001 0.17300456E+001 0.28495263E+003 0.28495263E+003 0.31046121E+003 -0.34708046E+001 0.18832280E+001 -0.15875767E+001 0.87929791E+001 0.15349978E+001 0.81284312E+000 0.15349978E+001 0.81284312E+000 0.15349978E+001 0.81284312E+000 0.10000001E-003 0.31458000E-002 0.31458000E-002 0.00000000E+000 0.52430000E-001 0.52430000E-001 0.00000000E+000 0.42800003E+004 0.71333339E+005 0.42228320E+004 0.70380533E+005 0.42228320E+004 0.42227735E+004 0.70379558E+005 0.42227735E+004 0.95788967E+000 0.98664291E+000 0.98662924E+000 -0.13307545E+004 -0.22179242E+005 -0.53297261E+003 -0.46431882E+003 -0.33346308E+003 0.60000000E+003 0.58000000E+003 0.53000000E+003 0.40000000E+003 0.14550851E+008 0.79058856E+001 0.49863644E+006 0.24087717E+001 0.33736823E+006 0.35066596E+003 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.30684165E+002 0.20873582E+001 0.19874109E+002 0.18634599E+000 0.10669132E-003 0.10003719E-005 0.19042624E-002 0.19127011E-004 0.18178219E-002 0.19160056E+001 -0.50796369E-003 -0.52262771E+003 0.00000000E+000 0.18500000E+002 -0.30601656E+003 0.00000000E+000 -0.30601656E+003 0.00000000E+000 0.16666668E-002 -0.21317166E+002 0.59204419E+002 0.19625440E+004 0.11021200E+002 0.28384581E+004 0.42280851E+001 0.10000001E-003 0.68052459E+003 0.11102884E+004
0.50000000E+001 0.30000000E+000 0.20000000E+004 0.16666667E+002 0.60000000E-001 0.10000000E+006 0.29800000E+003 0.14700000E+002 0.42800000E+008 0.40000000E+001 0.17533621E-002 0.72029300E+001 0.66109089E+001 0.59202109E+000 0.00000000E+000 0.92240772E+002 0.19318862E+002 0.82603593E+001 0.17300456E+001 0.28505044E+003 0.28505044E+003 0.31057732E+003 -0.34707351E+001 0.18832817E+001 -0.15874533E+001 0.87903833E+001 0.15349978E+001 0.81322353E+000 0.15349978E+001 0.81322353E+000 0.15349978E+001 0.81322353E+000 0.10000001E-003 0.31458000E-002 0.31458000E-002 0.00000000E+000 0.52430000E-001 0.52430000E-001 0.00000000E+000 0.42800003E+004 0.71333339E+005 0.42227101E+004 0.70378502E+005 0.42227101E+004 0.42226516E+004 0.70377526E+005 0.42226516E+004 0.95791206E+000 0.98661443E+000 0.98660076E+000 -0.13292350E+004 -0.22153917E+005 -0.53235817E+003 -0.46380594E+003 -0.33307092E+003 0.60000000E+003 0.58000000E+003 0.53000000E+003 0.40000000E+003 0.14543300E+008 0.78837467E+001 0.49836648E+006 0.24023776E+001 0.33725716E+006 0.35066940E+003 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.30685277E+002 0.20874338E+001 0.19819455E+002 0.18623747E+000 0.10635814E-003 0.99941554E-006 0.18983176E-002 0.19108744E-004 0.18333873E-002 0.19163024E+001 -0.50783612E-003 -0.52195100E+003 0.00000000E+000 0.18500000E+002 -0.30844287E+003 0.00000000E+000 -0.30844287E+003 0.00000000E+000 0.16666668E-002 -0.21316932E+002 0.59187601E+002 0.19609849E+004 0.11611049E+002 0.28376219E+004 0.42164101E+001 0.10000001E-003 0.68061136E+003 0.11096294E+004
0.60000000E+001 0.36000000E+000 0.20000000E+004 0.16666667E+002 0.60000000E-001 0.10000000E+006 0.29800000E+003 0.14700000E+002 0.42800000E+008 0.40000000E+001 0.17533621E-002 0.72133671E+001 0.66213460E+001 0.59202109E+000 0.00000000E+000 0.92386399E+002 0.19349362E+002 0.82603593E+001 0.17300456E+001 0.28463800E+003 0.28463800E+003 0.31008777E+003 -0.34707227E+001 0.18832994E+001 -0.15874233E+001 0.88007903E+001 0.15349978E+001 0.81339294E+000 0.15349978E+001 0.81339294E+000 0.15349978E+001 0.81339294E+000 0.10000001E-003 0.31458000E-002 0.31458000E-002 0.00000000E+000 0.52430000E-001 0.52430000E-001 0.00000000E+000 0.42800003E+004 0.71333339E+005 0.42226491E+004 0.70377485E+005 0.42226491E+004 0.42225906E+004 0.70376509E+005 0.42225906E+004 0.95793248E+000 0.98660017E+000 0.98658650E+000 -0.13271305E+004 -0.22118842E+005 -0.53149458E+003 -0.46308585E+003 -0.33255008E+003 0.60000000E+003 0.58000000E+003 0.53000000E+003 0.40000000E+003 0.14534717E+008 0.78736783E+001 0.49864247E+006 0.23998256E+001 0.33730793E+006 0.35067852E+003 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.30687560E+002 0.20875891E+001 0.19758958E+002 0.18587296E+000 0.10620090E-003 0.99903420E-006 0.18955120E-002 0.19101463E-004 0.18388088E-002 0.19158167E+001 -0.50762989E-003 -0.52102356E+003 0.00000000E+000 0.18500000E+002 -0.30971258E+003 0.00000000E+000 -0.30971258E+003 0.00000000E+000 0.16666668E-002 -0.21311366E+002 0.59191612E+002 0.19596662E+004 0.11595686E+002 0.28367423E+004 0.42118656E+001 0.10000001E-003 0.68076493E+003 0.11086806E+004
0.70000000E+001 0.42000000E+000 0.20000000E+004 0.16666667E+002 0.60000000E-001 0.10000000E+006 0.29800000E+003 0.14700000E+002 0.42800000E+008 0.40000000E+001 0.17533621E-002 0.72129544E+001 0.66209333E+001 0.59202109E+000 0.00000000E+000 0.92380641E+002 0.19348156E+002 0.82603593E+001 0.17300456E+001 0.28465429E+003 0.28465429E+003 0.31010709E+003 -0.34707198E+001 0.18833099E+001 -0.15874099E+001 0.88003643E+001 0.15349978E+001 0.81346842E+000 0.15349978E+001 0.81346842E+000 0.15349978E+001 0.81346842E+000 0.10000001E-003 0.31458000E-002 0.31458000E-002 0.00000000E+000 0.52430000E-001 0.52430000E-001 0.00000000E+000 0.42800003E+004 0.71333339E+005 0.42226563E+004 0.70377605E+005 0.42226563E+004 0.42225977E+004 0.70376629E+005 0.42225977E+004 0.95791303E+000 0.98660186E+000 0.98658817E+000 -0.13271963E+004 -0.22119938E+005 -0.53154207E+003 -0.46312694E+003 -0.33252728E+003 0.60000000E+003 0.58000000E+003 0.53000000E+003 0.40000000E+003 0.14535261E+008 0.78710328E+001 0.49860444E+006 0.23992368E+001 0.33733898E+006 0.35069072E+003 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.30687273E+002 0.20875696E+001 0.19733121E+002 0.18586794E+000 0.10605542E-003 0.99894498E-006 0.18929158E-002 0.19099760E-004 0.18477949E-002 0.19156709E+001 -0.50763721E-003 -0.52103913E+003 0.00000000E+000 0.18500000E+002 -0.30989032E+003 0.00000000E+000 -0.30989032E+003 0.00000000E+000 0.16666668E-002 -0.21299990E+002 0.59162189E+002 0.19596970E+004 0.11591633E+002 0.28367314E+004 0.42108478E+001 0.10000001E-003 0.68081297E+003 0.11086882E+004
0.80000000E+001 0.48000000E+000 0.20000000E+004 0.16666667E+002 0.60000000E-001 0.10000000E+006 0.29800000E+003 0.14700000E+002 0.42800000E+008 0.40000000E+001 0.17533621E-002 0.72128716E+001 0.66208505E+001 0.59202109E+000 0.00000000E+000 0.92379486E+002 0.19347914E+002 0.82603593E+001 0.17300456E+001 0.28465755E+003 0.28465755E+003 0.31011097E+003 -0.34707201E+001 0.18833149E+001 -0.15874052E+001 0.88002768E+001 0.15349978E+001 0.81350192E+000 0.15349978E+001 0.81350192E+000 0.15349978E+001 0.81350192E+000 0.10000001E-003 0.31458000E-002 0.31458000E-002 0.00000000E+000 0.52430000E-001 0.52430000E-001 0.00000000E+000 0.42800003E+004 0.71333339E+005 0.42226489E+004 0.70377482E+005 0.42226489E+004 0.42225904E+004 0.70376506E+005 0.42225904E+004 0.95791381E+000 0.98660014E+000 0.98658645E+000 -0.13272086E+004 -0.22120144E+005 -0.53154451E+003 -0.46312886E+003 -0.33253526E+003 0.60000000E+003 0.58000000E+003 0.53000000E+003 0.40000000E+003 0.14535378E+008 0.78700047E+001 0.49859807E+006 0.23989750E+001 0.33733827E+006 0.35068980E+003 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.30687287E+002 0.20875706E+001 0.19733501E+002 0.18586514E+000 0.10605613E-003 0.99891745E-006 0.18929286E-002 0.19099235E-004 0.18475615E-002 0.19156787E+001 -0.50763756E-003 -0.52104326E+003 0.00000000E+000 0.18500000E+002 -0.31007908E+003 0.00000000E+000 -0.31007908E+003 0.00000000E+000 0.16666668E-002 -0.21301002E+002 0.59161752E+002 0.19597064E+004 0.11590078E+002 0.28367422E+004 0.42103792E+001 0.10000001E-003 0.68080795E+003 0.11086942E+004
0.90000000E+001 0.54000000E+000 0.20000000E+004 0.16666667E+002 0.60000000E-001 0.10000000E+006 0.29800000E+003 0.14700000E+002 0.42800000E+008 0.40000000E+001 0.17533621E-002 0.72128246E+001 0.66208035E+001 0.59202109E+000 0.00000000E+000 0.92378830E+002 0.19347777E+002 0.82603593E+001 0.17300456E+001 0.28465941E+003 0.28465941E+003 0.31011317E+003 -0.34707194E+001 0.18833171E+001 -0.15874023E+001 0.88002269E+001 0.15349978E+001 0.81351694E+000 0.15349978E+001 0.81351694E+000 0.15349978E+001 0.81351694E+000 0.10000001E-003 0.31458000E-002 0.31458000E-002 0.00000000E+000 0.52430000E-001 0.52430000E-001 0.00000000E+000 0.42800003E+004 0.71333339E+005 0.42226470E+004 0.70377450E+005 0.42226470E+004 0.42225884E+004 0.70376474E+005 0.42225884E+004 0.95791429E+000 0.98659968E+000 0.98658600E+000 -0.13272097E+004 -0.22120162E+005 -0.53154351E+003 -0.46312795E+003 -0.33253829E+003 0.60000000E+003 0.58000000E+003 0.53000000E+003 0.40000000E+003 0.14535413E+008 0.78696571E+001 0.49859840E+006 0.23988894E+001 0.33733897E+006 0.35068926E+003 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.30687298E+002 0.20875713E+001 0.19733359E+002 0.18586419E+000 0.10605462E-003 0.99890523E-006 0.18929017E-002 0.19099001E-004 0.18476314E-002 0.19156810E+001 -0.50763732E-003 -0.52104346E+003 0.00000000E+000 0.18500000E+002 -0.31016586E+003 0.00000000E+000 -0.31016586E+003 0.00000000E+000 0.16666668E-002 -0.21301575E+002 0.59161893E+002 0.19597061E+004 0.11589542E+002 0.28367437E+004 0.42102291E+001 0.10000001E-003 0.68080507E+003 0.11086954E+004
0.10000000E+002 0.60000000E+000 0.20000000E+004 0.16666667E+002 0.60000000E-001 0.10000000E+006 0.29800000E+003 0.14700000E+002 0.42800000E+008 0.40000000E+001 0.17533621E-002 0.72128073E+001 0.66207863E+001 0.59202109E+000 0.00000000E+000 0.92378589E+002 0.19347726E+002 0.82603593E+001 0.17300456E+001 0.28466009E+003 0.28466009E+003 0.31011398E+003 -0.34707190E+001 0.18833180E+001 -0.15874010E+001 0.88002083E+001 0.15349978E+001 0.81352369E+000 0.15349978E+001 0.81352369E+000 0.15349978E+001 0.81352369E+000 0.10000001E-003 0.31458000E-002 0.31458000E-002 0.00000000E+000 0.52430000E-001 0.52430000E-001 0.00000000E+000 0.42800003E+004 0.71333339E+005 0.42226463E+004 0.70377438E+005 0.42226463E+004 0.42225877E+004 0.70376462E+005 0.42225877E+004 0.95791451E+000 0.98659951E+000 0.98658583E+000 -0.13272110E+004 -0.22120183E+005 -0.53154341E+003 -0.46312783E+003 -0.33253976E+003 0.60000000E+003 0.58000000E+003 0.53000000E+003 0.40000000E+003 0.14535429E+008 0.78695183E+001 0.49859855E+006 0.23988547E+001 0.33733936E+006 0.35068904E+003 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.00000000E+000 0.30687302E+002 0.20875716E+001 0.19733333E+002 0.18586379E+000 0.10605420E-003 0.99890050E-006 0.18928942E-002 0.19098911E-004 0.18476448E-002 0.19156830E+001 -0.50763721E-003 -0.52104368E+003 0.00000000E+000 0.18500000E+002 -0.31020517E+003 0.00000000E+000 -0.31020517E+003 0.00000000E+000 0.16666668E-002 -0.21301805E+002 0.59161954E+002 0.19597062E+004 0.11589327E+002 0.28367446E+004 0.42101687E+001 0.10000001E-003 0.68080392E+003 0.11086962E+004
  1 Comment
ZK
ZK on 1 Feb 2013
Edited: ZK on 1 Feb 2013
Hi I have a question. If I have values looking like this 1.43,211 is there any corect conversion character instead of %f to frmt line, or I need to delete the comma and rewrite the imput file?

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!