how to create a Matrix from a dat file

1 次查看(过去 30 天)
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 个评论
GUSTAF NJEI
GUSTAF NJEI 2018-6-13
i had to rename the file from .dat to .text in other to upload here

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by