Borrar filtros
Borrar filtros

Hello, Can any one guide me in extracting and importing the numeric values from the given text file into matlab. Data is as given in the body below.

1 visualización (últimos 30 días)
------------------------------------------------------------------------------ ANNUAL PERCENTAGE INTEREST CHARGES : 15.000 ANNUAL PERCENT OPERATION & MAINTENANCE CHARGES : 4.000 LIFE OF EQUIPMENT IN YEARS : 20.000 ENERGY UNIT CHARGE (KWHOUR) : 2.500 Rs LOSS LOAD FACTOR : 0.300 COST PER MVAR IN LAKHS : 5.000 Rs ------------------------------------------------------------------------------- DATA
ZONE P LOAD Q LOAD P GEN Q GEN SH REACT SH CAP C LOAD ---- -------- -------- -------- -------- -------- -------- -------- 0 0.000 0.000 0.000 0.000 0.000 0.000 0.000 1 1.000 0.500 1.000 1.000 1.000 1.000 1.000 16 0.200 1.000 0.300 0.300 1.000 1.000 1.000 17 1.000 0.600 1.000 1.000 1.000 1.000 1.000 21 0.850 0.700 1.000 1.000 1.000 1.000 1.000 22 1.000 1.000 1.000 1.000 1.000 1.000 1.000 23 1.150 0.600 1.000 1.000 1.000 1.000 1.000 24 0.850 0.400 1.000 1.000 1.000 1.000 1.000 25 1.000 0.600 1.000 1.000 1.000 1.000 1.000 81 0.750 0.450 1.000 1.000 1.000 1.000 1.000 82 0.850 0.400 1.000 1.000 1.000 1.000 1.000 83 0.750 0.450 1.000 1.000 1.000 1.000 1.000 84 0.980 0.500 1.000 1.000 1.000 1.000 1.000 85 0.520 0.300 1.000 1.000 1.000 1.000 1.000 86 0.650 0.400 1.000 1.000 1.000 1.000 1.000 87 0.750 0.350 1.000 1.000 1.000 1.000 1.000 88 0.650 0.350 1.000 1.000 1.000 1.000 1.000 89 0.850 0.600 1.000 1.000 1.000 1.000 1.000 90 1.150 0.600 1.000 1.000 1.000 1.000 1.000 91 0.850 0.450 1.000 1.000 1.000 1.000 1.000 92 1.000 0.000 1.000 1.000 1.000 1.000 1.000 93 1.000 0.000 1.000 1.000 1.000 1.000 1.000 94 1.000 0.400 1.000 1.000 1.000 1.000 1.000 95 1.000 1.000 1.000 1.000 1.000 1.000 1.000 -------------------------------------------------------------------------------

Respuestas (1)

Image Analyst
Image Analyst el 23 de Nov. de 2012
Did you try importdata()?
"A = importdata(filename,delimiterIn,headerlinesIn) loads data from ASCII file, filename, or the clipboard, reading numeric data starting from line headerlinesIn+1."
headerlinesIn is the number of text lines in the file before you table of numbers starts.

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by