how to create a Matrix from a dat file

Attach below is my output(pfoutput.dat) file.
First i will like to have my codes recognize the bus number of my system. 14 for example as in the case below in row 1.
Secondly i will like my code to start reading or skip 5 lines after the stored line (***************power flow report*************) which is row 16.
Lastly i will like my codes to read only the rows start with "1,2,3...,14" skipping all row starting with "To-Bus" to produce a matrix of n rows and 7 columns , where n= number of bus system.
thanks for your help and time in advance

5 comentarios

Paolo
Paolo el 13 de Jun. de 2018
Can you attach your file?
GUSTAF NJEI
GUSTAF NJEI el 13 de Jun. de 2018
here it is . i think i did attach it above also.
Paolo
Paolo el 13 de Jun. de 2018
I mean the actual pfoutput.dat, not a screenshot of the file.
GUSTAF NJEI
GUSTAF NJEI el 13 de Jun. de 2018
i had to rename the file from .dat to .text in other to upload here
Sindhu Yerragunta
Sindhu Yerragunta el 21 de Jun. de 2018
You can use textscan for reading the data.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Data Import and Analysis en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 13 de Jun. de 2018

Comentada:

el 21 de Jun. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by