Searching for a line of characters from a text file

2 visualizzazioni (ultimi 30 giorni)
School Elec
School Elec il 25 Set 2020
Riaperto: School Elec il 2 Nov 2022
Hi there, Im new to Matlab and am having trouble pulling the information I need from a data file.
Ive done some research into text scan but cant figure out how to full certain letters of interest out to analyze.
Basically between some antenna paths im curious about how some interact before reaching the reciever, this can vary and there are many different entries to go through.
The format is basically for example TX - R - D - T - RX, where the interactions between TX and RX (R,D,T) mean different things and want to collect them over varying distances to see if I can find a trend. An example of 3 entires is posted below.
1 250
-75.7266 1.03432e-09 4.07739e-09
1 0 -75.5437 149.594 9.84741e-10 92.5422 29.4445 87.4578 -150.556
Tx-Rx
47.6204 -2.02563 3.66
47.3637 -2.17056 3.67309
2 1 -109.99 17.6051 4.68324e-08 179.337 63.204 178.106 -161.79
Tx-R-Rx
47.6204 -2.02563 3.66
47.4003 -2.09805 -3.34904
47.3637 -2.17056 3.67309
3 2 -122.272 42.2889 4.60373e-07 92.7727 177.411 92.7543 -179.597
Tx-R-R-Rx
47.6204 -2.02563 3.66
-21.3776 -2.51078 0.340552
16.7555 -0.786728 2.18922
47.3637 -2.17056 3.67309
The path is the sexond line of the entry. I understand for searching the first line I could use textscan(fid, %d %d %f %f %f %f %f %f %f , ..... )
But im interested in the line below where between TX and RX there are varying conditions between the delimeter -
If anyone could shed some insight I would really appreciate it.

Risposte (0)

Categorie

Scopri di più su Language Fundamentals in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by