Reading txt file, finding each string extracting info

1 view (last 30 days)
I have a parsed data from a GPS receiver.
It gives various information for each visible GPS satellite.
For example, at 00:00:04 (iTOW=00:00:04) and 00:00:05 receiver (iTOW=00:00:05) gives the information shown below.
<UBX(NAV-SAT, iTOW=00:00:04, version=1, numSvs=12, reserved0=0, gnssId_01=GPS, svId_01=1, cno_01=53, elev_01=79, azim_01=336, prRes_01=-73.2, qualityInd_01=6, svUsed_01=1, health_01=1, diffCorr_01=0, smoothed_01=0, orbitSource_01=1, ephAvail_01=1, almAvail_01=0, anoAvail_01=0, aopAvail_01=0, sbasCorrUsed_01=0, rtcmCorrUsed_01=0, slasCorrUsed_01=0, spartnCorrUsed_01=0, prCorrUsed_01=0, crCorrUsed_01=0, doCorrUsed_01=0, gnssId_02=GPS, svId_02=3, cno_02=50, elev_02=46, azim_02=318, prRes_02=-92.3, qualityInd_02=5, svUsed_02=1, health_02=1, diffCorr_02=0, smoothed_02=0, orbitSource_02=1, ephAvail_02=1, almAvail_02=0, anoAvail_02=0, aopAvail_02=0, sbasCorrUsed_02=0, rtcmCorrUsed_02=0, slasCorrUsed_02=0, spartnCorrUsed_02=0, prCorrUsed_02=0, crCorrUsed_02=0, doCorrUsed_02=0, gnssId_03=GPS, svId_03=4, cno_03=51, elev_03=45, azim_03=234, prRes_03=-66.8, qualityInd_03=5, svUsed_03=1, health_03=1, diffCorr_03=0, smoothed_03=0, orbitSource_03=1, ephAvail_03=1, almAvail_03=0, anoAvail_03=0, aopAvail_03=0, sbasCorrUsed_03=0, rtcmCorrUsed_03=0, slasCorrUsed_03=0, spartnCorrUsed_03=0, prCorrUsed_03=0, crCorrUsed_03=0, doCorrUsed_03=0, gnssId_04=GPS, svId_04=8, cno_04=46, elev_04=16, azim_04=193, prRes_04=-13.2, qualityInd_04=7, svUsed_04=1, health_04=1, diffCorr_04=0, smoothed_04=0, orbitSource_04=1, ephAvail_04=1, almAvail_04=0, anoAvail_04=0, aopAvail_04=0, sbasCorrUsed_04=0, rtcmCorrUsed_04=0, slasCorrUsed_04=0, spartnCorrUsed_04=0, prCorrUsed_04=0, crCorrUsed_04=0, doCorrUsed_04=0, gnssId_05=GPS, svId_05=9, cno_05=44, elev_05=11, azim_05=231, prRes_05=2.2, qualityInd_05=7, svUsed_05=1, health_05=1, diffCorr_05=0, smoothed_05=0, orbitSource_05=1, ephAvail_05=1, almAvail_05=0, anoAvail_05=0, aopAvail_05=0, sbasCorrUsed_05=0, rtcmCorrUsed_05=0, slasCorrUsed_05=0, spartnCorrUsed_05=0, prCorrUsed_05=0, crCorrUsed_05=0, doCorrUsed_05=0, gnssId_06=GPS, svId_06=17, cno_06=46, elev_06=17, azim_06=309, prRes_06=-86.1, qualityInd_06=6, svUsed_06=1, health_06=1, diffCorr_06=0, smoothed_06=0, orbitSource_06=1, ephAvail_06=1, almAvail_06=0, anoAvail_06=0, aopAvail_06=0, sbasCorrUsed_06=0, rtcmCorrUsed_06=0, slasCorrUsed_06=0, spartnCorrUsed_06=0, prCorrUsed_06=0, crCorrUsed_06=0, doCorrUsed_06=0, gnssId_07=GPS, svId_07=19, cno_07=43, elev_07=3, azim_07=324, prRes_07=0.0, qualityInd_07=7, svUsed_07=0, health_07=1, diffCorr_07=0, smoothed_07=0, orbitSource_07=1, ephAvail_07=1, almAvail_07=0, anoAvail_07=0, aopAvail_07=0, sbasCorrUsed_07=0, rtcmCorrUsed_07=0, slasCorrUsed_07=0, spartnCorrUsed_07=0, prCorrUsed_07=0, crCorrUsed_07=0, doCorrUsed_07=0, gnssId_08=GPS, svId_08=21, cno_08=52, elev_08=72, azim_08=148, prRes_08=-4.4, qualityInd_08=7, svUsed_08=1, health_08=1, diffCorr_08=0, smoothed_08=0, orbitSource_08=1, ephAvail_08=1, almAvail_08=0, anoAvail_08=0, aopAvail_08=0, sbasCorrUsed_08=0, rtcmCorrUsed_08=0, slasCorrUsed_08=0, spartnCorrUsed_08=0, prCorrUsed_08=0, crCorrUsed_08=0, doCorrUsed_08=0, gnssId_09=GPS, svId_09=22, cno_09=46, elev_09=28, azim_09=41, prRes_09=4.2, qualityInd_09=7, svUsed_09=1, health_09=1, diffCorr_09=0, smoothed_09=0, orbitSource_09=1, ephAvail_09=1, almAvail_09=0, anoAvail_09=0, aopAvail_09=0, sbasCorrUsed_09=0, rtcmCorrUsed_09=0, slasCorrUsed_09=0, spartnCorrUsed_09=0, prCorrUsed_09=0, crCorrUsed_09=0, doCorrUsed_09=0, gnssId_10=GPS, svId_10=32, cno_10=45, elev_10=11, azim_10=44, prRes_10=-19.5, qualityInd_10=7, svUsed_10=1, health_10=1, diffCorr_10=0, smoothed_10=0, orbitSource_10=1, ephAvail_10=1, almAvail_10=0, anoAvail_10=0, aopAvail_10=0, sbasCorrUsed_10=0, rtcmCorrUsed_10=0, slasCorrUsed_10=0, spartnCorrUsed_10=0, prCorrUsed_10=0, crCorrUsed_10=0, doCorrUsed_10=0, gnssId_11=Galileo, svId_11=3, cno_11=0, elev_11=-91, azim_11=0, prRes_11=0.0, qualityInd_11=1, svUsed_11=0, health_11=0, diffCorr_11=0, smoothed_11=0, orbitSource_11=0, ephAvail_11=0, almAvail_11=0, anoAvail_11=0, aopAvail_11=0, sbasCorrUsed_11=0, rtcmCorrUsed_11=0, slasCorrUsed_11=0, spartnCorrUsed_11=0, prCorrUsed_11=0, crCorrUsed_11=0, doCorrUsed_11=0, gnssId_12=Galileo, svId_12=4, cno_12=0, elev_12=-91, azim_12=0, prRes_12=0.0, qualityInd_12=1, svUsed_12=0, health_12=0, diffCorr_12=0, smoothed_12=0, orbitSource_12=0, ephAvail_12=0, almAvail_12=0, anoAvail_12=0, aopAvail_12=0, sbasCorrUsed_12=0, rtcmCorrUsed_12=0, slasCorrUsed_12=0, spartnCorrUsed_12=0, prCorrUsed_12=0, crCorrUsed_12=0, doCorrUsed_12=0)>
<UBX(NAV-SAT, iTOW=00:00:05, version=1, numSvs=21, reserved0=0, gnssId_01=GPS, svId_01=1, cno_01=53, elev_01=79, azim_01=336, prRes_01=-76.2, qualityInd_01=6, svUsed_01=1, health_01=1, diffCorr_01=0, smoothed_01=0, orbitSource_01=1, ephAvail_01=1, almAvail_01=0, anoAvail_01=0, aopAvail_01=0, sbasCorrUsed_01=0, rtcmCorrUsed_01=0, slasCorrUsed_01=0, spartnCorrUsed_01=0, prCorrUsed_01=0, crCorrUsed_01=0, doCorrUsed_01=0, gnssId_02=GPS, svId_02=3, cno_02=50, elev_02=46, azim_02=318, prRes_02=-97.0, qualityInd_02=6, svUsed_02=0, health_02=1, diffCorr_02=0, smoothed_02=0, orbitSource_02=1, ephAvail_02=1, almAvail_02=0, anoAvail_02=0, aopAvail_02=0, sbasCorrUsed_02=0, rtcmCorrUsed_02=0, slasCorrUsed_02=0, spartnCorrUsed_02=0, prCorrUsed_02=0, crCorrUsed_02=0, doCorrUsed_02=0, gnssId_03=GPS, svId_03=4, cno_03=51, elev_03=45, azim_03=234, prRes_03=-69.5, qualityInd_03=6, svUsed_03=1, health_03=1, diffCorr_03=0, smoothed_03=0, orbitSource_03=1, ephAvail_03=1, almAvail_03=0, anoAvail_03=0, aopAvail_03=0, sbasCorrUsed_03=0, rtcmCorrUsed_03=0, slasCorrUsed_03=0, spartnCorrUsed_03=0, prCorrUsed_03=0, crCorrUsed_03=0, doCorrUsed_03=0, gnssId_04=GPS, svId_04=8, cno_04=46, elev_04=16, azim_04=193, prRes_04=-11.5, qualityInd_04=7, svUsed_04=1, health_04=1, diffCorr_04=0, smoothed_04=0, orbitSource_04=1, ephAvail_04=1, almAvail_04=0, anoAvail_04=0, aopAvail_04=0, sbasCorrUsed_04=0, rtcmCorrUsed_04=0, slasCorrUsed_04=0, spartnCorrUsed_04=0, prCorrUsed_04=0, crCorrUsed_04=0, doCorrUsed_04=0, gnssId_05=GPS, svId_05=9, cno_05=44, elev_05=11, azim_05=231, prRes_05=2.0, qualityInd_05=7, svUsed_05=1, health_05=1, diffCorr_05=0, smoothed_05=0, orbitSource_05=1, ephAvail_05=1, almAvail_05=0, anoAvail_05=0, aopAvail_05=0, sbasCorrUsed_05=0, rtcmCorrUsed_05=0, slasCorrUsed_05=0, spartnCorrUsed_05=0, prCorrUsed_05=0, crCorrUsed_05=0, doCorrUsed_05=0, gnssId_06=GPS, svId_06=14, cno_06=0, elev_06=-91, azim_06=0, prRes_06=0.0, qualityInd_06=1, svUsed_06=0, health_06=1, diffCorr_06=0, smoothed_06=0, orbitSource_06=0, ephAvail_06=0, almAvail_06=0, anoAvail_06=0, aopAvail_06=0, sbasCorrUsed_06=0, rtcmCorrUsed_06=0, slasCorrUsed_06=0, spartnCorrUsed_06=0, prCorrUsed_06=0, crCorrUsed_06=0, doCorrUsed_06=0, gnssId_07=GPS, svId_07=15, cno_07=0, elev_07=-91, azim_07=0, prRes_07=0.0, qualityInd_07=1, svUsed_07=0, health_07=1, diffCorr_07=0, smoothed_07=0, orbitSource_07=0, ephAvail_07=0, almAvail_07=0, anoAvail_07=0, aopAvail_07=0, sbasCorrUsed_07=0, rtcmCorrUsed_07=0, slasCorrUsed_07=0, spartnCorrUsed_07=0, prCorrUsed_07=0, crCorrUsed_07=0, doCorrUsed_07=0, gnssId_08=GPS, svId_08=17, cno_08=46, elev_08=17, azim_08=309, prRes_08=-90.1, qualityInd_08=6, svUsed_08=0, health_08=1, diffCorr_08=0, smoothed_08=0, orbitSource_08=1, ephAvail_08=1, almAvail_08=0, anoAvail_08=0, aopAvail_08=0, sbasCorrUsed_08=0, rtcmCorrUsed_08=0, slasCorrUsed_08=0, spartnCorrUsed_08=0, prCorrUsed_08=0, crCorrUsed_08=0, doCorrUsed_08=0, gnssId_09=GPS, svId_09=19, cno_09=43, elev_09=3, azim_09=324, prRes_09=0.0, qualityInd_09=7, svUsed_09=0, health_09=1, diffCorr_09=0, smoothed_09=0, orbitSource_09=1, ephAvail_09=1, almAvail_09=0, anoAvail_09=0, aopAvail_09=0, sbasCorrUsed_09=0, rtcmCorrUsed_09=0, slasCorrUsed_09=0, spartnCorrUsed_09=0, prCorrUsed_09=0, crCorrUsed_09=0, doCorrUsed_09=0, gnssId_10=GPS, svId_10=20, cno_10=0, elev_10=-91, azim_10=0, prRes_10=0.0, qualityInd_10=1, svUsed_10=0, health_10=1, diffCorr_10=0, smoothed_10=0, orbitSource_10=0, ephAvail_10=0, almAvail_10=0, anoAvail_10=0, aopAvail_10=0, sbasCorrUsed_10=0, rtcmCorrUsed_10=0, slasCorrUsed_10=0, spartnCorrUsed_10=0, prCorrUsed_10=0, crCorrUsed_10=0, doCorrUsed_10=0, gnssId_11=GPS, svId_11=21, cno_11=52, elev_11=72, azim_11=148, prRes_11=-4.2, qualityInd_11=7, svUsed_11=1, health_11=1, diffCorr_11=0, smoothed_11=0, orbitSource_11=1, ephAvail_11=1, almAvail_11=0, anoAvail_11=0, aopAvail_11=0, sbasCorrUsed_11=0, rtcmCorrUsed_11=0, slasCorrUsed_11=0, spartnCorrUsed_11=0, prCorrUsed_11=0, crCorrUsed_11=0, doCorrUsed_11=0, gnssId_12=GPS, svId_12=22, cno_12=46, elev_12=28, azim_12=41, prRes_12=4.4, qualityInd_12=7, svUsed_12=1, health_12=1, diffCorr_12=0, smoothed_12=0, orbitSource_12=1, ephAvail_12=1, almAvail_12=0, anoAvail_12=0, aopAvail_12=0, sbasCorrUsed_12=0, rtcmCorrUsed_12=0, slasCorrUsed_12=0, spartnCorrUsed_12=0, prCorrUsed_12=0, crCorrUsed_12=0, doCorrUsed_12=0, gnssId_13=GPS, svId_13=23, cno_13=0, elev_13=-91, azim_13=0, prRes_13=0.0, qualityInd_13=1, svUsed_13=0, health_13=1, diffCorr_13=0, smoothed_13=0, orbitSource_13=0, ephAvail_13=0, almAvail_13=0, anoAvail_13=0, aopAvail_13=0, sbasCorrUsed_13=0, rtcmCorrUsed_13=0, slasCorrUsed_13=0, spartnCorrUsed_13=0, prCorrUsed_13=0, crCorrUsed_13=0, doCorrUsed_13=0, gnssId_14=GPS, svId_14=24, cno_14=0, elev_14=-91, azim_14=0, prRes_14=0.0, qualityInd_14=1, svUsed_14=0, health_14=1, diffCorr_14=0, smoothed_14=0, orbitSource_14=0, ephAvail_14=0, almAvail_14=0, anoAvail_14=0, aopAvail_14=0, sbasCorrUsed_14=0, rtcmCorrUsed_14=0, slasCorrUsed_14=0, spartnCorrUsed_14=0, prCorrUsed_14=0, crCorrUsed_14=0, doCorrUsed_14=0, gnssId_15=GPS, svId_15=25, cno_15=0, elev_15=-91, azim_15=0, prRes_15=0.0, qualityInd_15=1, svUsed_15=0, health_15=0, diffCorr_15=0, smoothed_15=0, orbitSource_15=0, ephAvail_15=0, almAvail_15=0, anoAvail_15=0, aopAvail_15=0, sbasCorrUsed_15=0, rtcmCorrUsed_15=0, slasCorrUsed_15=0, spartnCorrUsed_15=0, prCorrUsed_15=0, crCorrUsed_15=0, doCorrUsed_15=0, gnssId_16=GPS, svId_16=32, cno_16=45, elev_16=11, azim_16=44, prRes_16=-18.8, qualityInd_16=7, svUsed_16=1, health_16=1, diffCorr_16=0, smoothed_16=0, orbitSource_16=1, ephAvail_16=1, almAvail_16=0, anoAvail_16=0, aopAvail_16=0, sbasCorrUsed_16=0, rtcmCorrUsed_16=0, slasCorrUsed_16=0, spartnCorrUsed_16=0, prCorrUsed_16=0, crCorrUsed_16=0, doCorrUsed_16=0, gnssId_17=SBAS, svId_17=127, cno_17=0, elev_17=46, azim_17=137, prRes_17=0.0, qualityInd_17=1, svUsed_17=0, health_17=0, diffCorr_17=0, smoothed_17=0, orbitSource_17=7, ephAvail_17=0, almAvail_17=0, anoAvail_17=0, aopAvail_17=0, sbasCorrUsed_17=0, rtcmCorrUsed_17=0, slasCorrUsed_17=0, spartnCorrUsed_17=0, prCorrUsed_17=0, crCorrUsed_17=0, doCorrUsed_17=0, gnssId_18=SBAS, svId_18=128, cno_18=0, elev_18=23, azim_18=111, prRes_18=0.0, qualityInd_18=1, svUsed_18=0, health_18=0, diffCorr_18=0, smoothed_18=0, orbitSource_18=7, ephAvail_18=0, almAvail_18=0, anoAvail_18=0, aopAvail_18=0, sbasCorrUsed_18=0, rtcmCorrUsed_18=0, slasCorrUsed_18=0, spartnCorrUsed_18=0, prCorrUsed_18=0, crCorrUsed_18=0, doCorrUsed_18=0, gnssId_19=SBAS, svId_19=136, cno_19=0, elev_19=46, azim_19=223, prRes_19=0.0, qualityInd_19=1, svUsed_19=0, health_19=0, diffCorr_19=0, smoothed_19=0, orbitSource_19=7, ephAvail_19=0, almAvail_19=0, anoAvail_19=0, aopAvail_19=0, sbasCorrUsed_19=0, rtcmCorrUsed_19=0, slasCorrUsed_19=0, spartnCorrUsed_19=0, prCorrUsed_19=0, crCorrUsed_19=0, doCorrUsed_19=0, gnssId_20=Galileo, svId_20=3, cno_20=0, elev_20=-91, azim_20=0, prRes_20=0.0, qualityInd_20=1, svUsed_20=0, health_20=0, diffCorr_20=0, smoothed_20=0, orbitSource_20=0, ephAvail_20=0, almAvail_20=0, anoAvail_20=0, aopAvail_20=0, sbasCorrUsed_20=0, rtcmCorrUsed_20=0, slasCorrUsed_20=0, spartnCorrUsed_20=0, prCorrUsed_20=0, crCorrUsed_20=0, doCorrUsed_20=0, gnssId_21=Galileo, svId_21=5, cno_21=0, elev_21=-91, azim_21=0, prRes_21=0.0, qualityInd_21=1, svUsed_21=0, health_21=0, diffCorr_21=0, smoothed_21=0, orbitSource_21=0, ephAvail_21=0, almAvail_21=0, anoAvail_21=0, aopAvail_21=0, sbasCorrUsed_21=0, rtcmCorrUsed_21=0, slasCorrUsed_21=0, spartnCorrUsed_21=0, prCorrUsed_21=0, crCorrUsed_21=0, doCorrUsed_21=0)>
I want to extract cno_01, cno_02, ... values for each second. Hence, for each iTOW.
How can I implement this using MATLAB?
  2 Comments
Bugrahan Ustundag
Bugrahan Ustundag on 26 Sep 2022
Edited: Bugrahan Ustundag on 26 Sep 2022
I found textscan function and I am still working on it

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 26 Sep 2022
Edited: Walter Roberson on 26 Sep 2022
If you have the text all within one long string, S, then it will need to be split. But if you used SS = readlines() then you can skip the splitting.
S = "<UBX(NAV-SAT, iTOW=00:00:04, version=1, numSvs=12, reserved0=0, gnssId_01=GPS, svId_01=1, cno_01=53, elev_01=79, azim_01=336, prRes_01=-73.2, qualityInd_01=6, svUsed_01=1, health_01=1, diffCorr_01=0, smoothed_01=0, orbitSource_01=1, ephAvail_01=1, almAvail_01=0, anoAvail_01=0, aopAvail_01=0, sbasCorrUsed_01=0, rtcmCorrUsed_01=0, slasCorrUsed_01=0, spartnCorrUsed_01=0, prCorrUsed_01=0, crCorrUsed_01=0, doCorrUsed_01=0, gnssId_02=GPS, svId_02=3, cno_02=50, elev_02=46, azim_02=318, prRes_02=-92.3, qualityInd_02=5, svUsed_02=1, health_02=1, diffCorr_02=0, smoothed_02=0, orbitSource_02=1, ephAvail_02=1, almAvail_02=0, anoAvail_02=0, aopAvail_02=0, sbasCorrUsed_02=0, rtcmCorrUsed_02=0, slasCorrUsed_02=0, spartnCorrUsed_02=0, prCorrUsed_02=0, crCorrUsed_02=0, doCorrUsed_02=0, gnssId_03=GPS, svId_03=4, cno_03=51, elev_03=45, azim_03=234, prRes_03=-66.8, qualityInd_03=5, svUsed_03=1, health_03=1, diffCorr_03=0, smoothed_03=0, orbitSource_03=1, ephAvail_03=1, almAvail_03=0, anoAvail_03=0, aopAvail_03=0, sbasCorrUsed_03=0, rtcmCorrUsed_03=0, slasCorrUsed_03=0, spartnCorrUsed_03=0, prCorrUsed_03=0, crCorrUsed_03=0, doCorrUsed_03=0, gnssId_04=GPS, svId_04=8, cno_04=46, elev_04=16, azim_04=193, prRes_04=-13.2, qualityInd_04=7, svUsed_04=1, health_04=1, diffCorr_04=0, smoothed_04=0, orbitSource_04=1, ephAvail_04=1, almAvail_04=0, anoAvail_04=0, aopAvail_04=0, sbasCorrUsed_04=0, rtcmCorrUsed_04=0, slasCorrUsed_04=0, spartnCorrUsed_04=0, prCorrUsed_04=0, crCorrUsed_04=0, doCorrUsed_04=0, gnssId_05=GPS, svId_05=9, cno_05=44, elev_05=11, azim_05=231, prRes_05=2.2, qualityInd_05=7, svUsed_05=1, health_05=1, diffCorr_05=0, smoothed_05=0, orbitSource_05=1, ephAvail_05=1, almAvail_05=0, anoAvail_05=0, aopAvail_05=0, sbasCorrUsed_05=0, rtcmCorrUsed_05=0, slasCorrUsed_05=0, spartnCorrUsed_05=0, prCorrUsed_05=0, crCorrUsed_05=0, doCorrUsed_05=0, gnssId_06=GPS, svId_06=17, cno_06=46, elev_06=17, azim_06=309, prRes_06=-86.1, qualityInd_06=6, svUsed_06=1, health_06=1, diffCorr_06=0, smoothed_06=0, orbitSource_06=1, ephAvail_06=1, almAvail_06=0, anoAvail_06=0, aopAvail_06=0, sbasCorrUsed_06=0, rtcmCorrUsed_06=0, slasCorrUsed_06=0, spartnCorrUsed_06=0, prCorrUsed_06=0, crCorrUsed_06=0, doCorrUsed_06=0, gnssId_07=GPS, svId_07=19, cno_07=43, elev_07=3, azim_07=324, prRes_07=0.0, qualityInd_07=7, svUsed_07=0, health_07=1, diffCorr_07=0, smoothed_07=0, orbitSource_07=1, ephAvail_07=1, almAvail_07=0, anoAvail_07=0, aopAvail_07=0, sbasCorrUsed_07=0, rtcmCorrUsed_07=0, slasCorrUsed_07=0, spartnCorrUsed_07=0, prCorrUsed_07=0, crCorrUsed_07=0, doCorrUsed_07=0, gnssId_08=GPS, svId_08=21, cno_08=52, elev_08=72, azim_08=148, prRes_08=-4.4, qualityInd_08=7, svUsed_08=1, health_08=1, diffCorr_08=0, smoothed_08=0, orbitSource_08=1, ephAvail_08=1, almAvail_08=0, anoAvail_08=0, aopAvail_08=0, sbasCorrUsed_08=0, rtcmCorrUsed_08=0, slasCorrUsed_08=0, spartnCorrUsed_08=0, prCorrUsed_08=0, crCorrUsed_08=0, doCorrUsed_08=0, gnssId_09=GPS, svId_09=22, cno_09=46, elev_09=28, azim_09=41, prRes_09=4.2, qualityInd_09=7, svUsed_09=1, health_09=1, diffCorr_09=0, smoothed_09=0, orbitSource_09=1, ephAvail_09=1, almAvail_09=0, anoAvail_09=0, aopAvail_09=0, sbasCorrUsed_09=0, rtcmCorrUsed_09=0, slasCorrUsed_09=0, spartnCorrUsed_09=0, prCorrUsed_09=0, crCorrUsed_09=0, doCorrUsed_09=0, gnssId_10=GPS, svId_10=32, cno_10=45, elev_10=11, azim_10=44, prRes_10=-19.5, qualityInd_10=7, svUsed_10=1, health_10=1, diffCorr_10=0, smoothed_10=0, orbitSource_10=1, ephAvail_10=1, almAvail_10=0, anoAvail_10=0, aopAvail_10=0, sbasCorrUsed_10=0, rtcmCorrUsed_10=0, slasCorrUsed_10=0, spartnCorrUsed_10=0, prCorrUsed_10=0, crCorrUsed_10=0, doCorrUsed_10=0, gnssId_11=Galileo, svId_11=3, cno_11=0, elev_11=-91, azim_11=0, prRes_11=0.0, qualityInd_11=1, svUsed_11=0, health_11=0, diffCorr_11=0, smoothed_11=0, orbitSource_11=0, ephAvail_11=0, almAvail_11=0, anoAvail_11=0, aopAvail_11=0, sbasCorrUsed_11=0, rtcmCorrUsed_11=0, slasCorrUsed_11=0, spartnCorrUsed_11=0, prCorrUsed_11=0, crCorrUsed_11=0, doCorrUsed_11=0, gnssId_12=Galileo, svId_12=4, cno_12=0, elev_12=-91, azim_12=0, prRes_12=0.0, qualityInd_12=1, svUsed_12=0, health_12=0, diffCorr_12=0, smoothed_12=0, orbitSource_12=0, ephAvail_12=0, almAvail_12=0, anoAvail_12=0, aopAvail_12=0, sbasCorrUsed_12=0, rtcmCorrUsed_12=0, slasCorrUsed_12=0, spartnCorrUsed_12=0, prCorrUsed_12=0, crCorrUsed_12=0, doCorrUsed_12=0)>" + newline + ...
"<UBX(NAV-SAT, iTOW=00:00:05, version=1, numSvs=21, reserved0=0, gnssId_01=GPS, svId_01=1, cno_01=53, elev_01=79, azim_01=336, prRes_01=-76.2, qualityInd_01=6, svUsed_01=1, health_01=1, diffCorr_01=0, smoothed_01=0, orbitSource_01=1, ephAvail_01=1, almAvail_01=0, anoAvail_01=0, aopAvail_01=0, sbasCorrUsed_01=0, rtcmCorrUsed_01=0, slasCorrUsed_01=0, spartnCorrUsed_01=0, prCorrUsed_01=0, crCorrUsed_01=0, doCorrUsed_01=0, gnssId_02=GPS, svId_02=3, cno_02=50, elev_02=46, azim_02=318, prRes_02=-97.0, qualityInd_02=6, svUsed_02=0, health_02=1, diffCorr_02=0, smoothed_02=0, orbitSource_02=1, ephAvail_02=1, almAvail_02=0, anoAvail_02=0, aopAvail_02=0, sbasCorrUsed_02=0, rtcmCorrUsed_02=0, slasCorrUsed_02=0, spartnCorrUsed_02=0, prCorrUsed_02=0, crCorrUsed_02=0, doCorrUsed_02=0, gnssId_03=GPS, svId_03=4, cno_03=51, elev_03=45, azim_03=234, prRes_03=-69.5, qualityInd_03=6, svUsed_03=1, health_03=1, diffCorr_03=0, smoothed_03=0, orbitSource_03=1, ephAvail_03=1, almAvail_03=0, anoAvail_03=0, aopAvail_03=0, sbasCorrUsed_03=0, rtcmCorrUsed_03=0, slasCorrUsed_03=0, spartnCorrUsed_03=0, prCorrUsed_03=0, crCorrUsed_03=0, doCorrUsed_03=0, gnssId_04=GPS, svId_04=8, cno_04=46, elev_04=16, azim_04=193, prRes_04=-11.5, qualityInd_04=7, svUsed_04=1, health_04=1, diffCorr_04=0, smoothed_04=0, orbitSource_04=1, ephAvail_04=1, almAvail_04=0, anoAvail_04=0, aopAvail_04=0, sbasCorrUsed_04=0, rtcmCorrUsed_04=0, slasCorrUsed_04=0, spartnCorrUsed_04=0, prCorrUsed_04=0, crCorrUsed_04=0, doCorrUsed_04=0, gnssId_05=GPS, svId_05=9, cno_05=44, elev_05=11, azim_05=231, prRes_05=2.0, qualityInd_05=7, svUsed_05=1, health_05=1, diffCorr_05=0, smoothed_05=0, orbitSource_05=1, ephAvail_05=1, almAvail_05=0, anoAvail_05=0, aopAvail_05=0, sbasCorrUsed_05=0, rtcmCorrUsed_05=0, slasCorrUsed_05=0, spartnCorrUsed_05=0, prCorrUsed_05=0, crCorrUsed_05=0, doCorrUsed_05=0, gnssId_06=GPS, svId_06=14, cno_06=0, elev_06=-91, azim_06=0, prRes_06=0.0, qualityInd_06=1, svUsed_06=0, health_06=1, diffCorr_06=0, smoothed_06=0, orbitSource_06=0, ephAvail_06=0, almAvail_06=0, anoAvail_06=0, aopAvail_06=0, sbasCorrUsed_06=0, rtcmCorrUsed_06=0, slasCorrUsed_06=0, spartnCorrUsed_06=0, prCorrUsed_06=0, crCorrUsed_06=0, doCorrUsed_06=0, gnssId_07=GPS, svId_07=15, cno_07=0, elev_07=-91, azim_07=0, prRes_07=0.0, qualityInd_07=1, svUsed_07=0, health_07=1, diffCorr_07=0, smoothed_07=0, orbitSource_07=0, ephAvail_07=0, almAvail_07=0, anoAvail_07=0, aopAvail_07=0, sbasCorrUsed_07=0, rtcmCorrUsed_07=0, slasCorrUsed_07=0, spartnCorrUsed_07=0, prCorrUsed_07=0, crCorrUsed_07=0, doCorrUsed_07=0, gnssId_08=GPS, svId_08=17, cno_08=46, elev_08=17, azim_08=309, prRes_08=-90.1, qualityInd_08=6, svUsed_08=0, health_08=1, diffCorr_08=0, smoothed_08=0, orbitSource_08=1, ephAvail_08=1, almAvail_08=0, anoAvail_08=0, aopAvail_08=0, sbasCorrUsed_08=0, rtcmCorrUsed_08=0, slasCorrUsed_08=0, spartnCorrUsed_08=0, prCorrUsed_08=0, crCorrUsed_08=0, doCorrUsed_08=0, gnssId_09=GPS, svId_09=19, cno_09=43, elev_09=3, azim_09=324, prRes_09=0.0, qualityInd_09=7, svUsed_09=0, health_09=1, diffCorr_09=0, smoothed_09=0, orbitSource_09=1, ephAvail_09=1, almAvail_09=0, anoAvail_09=0, aopAvail_09=0, sbasCorrUsed_09=0, rtcmCorrUsed_09=0, slasCorrUsed_09=0, spartnCorrUsed_09=0, prCorrUsed_09=0, crCorrUsed_09=0, doCorrUsed_09=0, gnssId_10=GPS, svId_10=20, cno_10=0, elev_10=-91, azim_10=0, prRes_10=0.0, qualityInd_10=1, svUsed_10=0, health_10=1, diffCorr_10=0, smoothed_10=0, orbitSource_10=0, ephAvail_10=0, almAvail_10=0, anoAvail_10=0, aopAvail_10=0, sbasCorrUsed_10=0, rtcmCorrUsed_10=0, slasCorrUsed_10=0, spartnCorrUsed_10=0, prCorrUsed_10=0, crCorrUsed_10=0, doCorrUsed_10=0, gnssId_11=GPS, svId_11=21, cno_11=52, elev_11=72, azim_11=148, prRes_11=-4.2, qualityInd_11=7, svUsed_11=1, health_11=1, diffCorr_11=0, smoothed_11=0, orbitSource_11=1, ephAvail_11=1, almAvail_11=0, anoAvail_11=0, aopAvail_11=0, sbasCorrUsed_11=0, rtcmCorrUsed_11=0, slasCorrUsed_11=0, spartnCorrUsed_11=0, prCorrUsed_11=0, crCorrUsed_11=0, doCorrUsed_11=0, gnssId_12=GPS, svId_12=22, cno_12=46, elev_12=28, azim_12=41, prRes_12=4.4, qualityInd_12=7, svUsed_12=1, health_12=1, diffCorr_12=0, smoothed_12=0, orbitSource_12=1, ephAvail_12=1, almAvail_12=0, anoAvail_12=0, aopAvail_12=0, sbasCorrUsed_12=0, rtcmCorrUsed_12=0, slasCorrUsed_12=0, spartnCorrUsed_12=0, prCorrUsed_12=0, crCorrUsed_12=0, doCorrUsed_12=0, gnssId_13=GPS, svId_13=23, cno_13=0, elev_13=-91, azim_13=0, prRes_13=0.0, qualityInd_13=1, svUsed_13=0, health_13=1, diffCorr_13=0, smoothed_13=0, orbitSource_13=0, ephAvail_13=0, almAvail_13=0, anoAvail_13=0, aopAvail_13=0, sbasCorrUsed_13=0, rtcmCorrUsed_13=0, slasCorrUsed_13=0, spartnCorrUsed_13=0, prCorrUsed_13=0, crCorrUsed_13=0, doCorrUsed_13=0, gnssId_14=GPS, svId_14=24, cno_14=0, elev_14=-91, azim_14=0, prRes_14=0.0, qualityInd_14=1, svUsed_14=0, health_14=1, diffCorr_14=0, smoothed_14=0, orbitSource_14=0, ephAvail_14=0, almAvail_14=0, anoAvail_14=0, aopAvail_14=0, sbasCorrUsed_14=0, rtcmCorrUsed_14=0, slasCorrUsed_14=0, spartnCorrUsed_14=0, prCorrUsed_14=0, crCorrUsed_14=0, doCorrUsed_14=0, gnssId_15=GPS, svId_15=25, cno_15=0, elev_15=-91, azim_15=0, prRes_15=0.0, qualityInd_15=1, svUsed_15=0, health_15=0, diffCorr_15=0, smoothed_15=0, orbitSource_15=0, ephAvail_15=0, almAvail_15=0, anoAvail_15=0, aopAvail_15=0, sbasCorrUsed_15=0, rtcmCorrUsed_15=0, slasCorrUsed_15=0, spartnCorrUsed_15=0, prCorrUsed_15=0, crCorrUsed_15=0, doCorrUsed_15=0, gnssId_16=GPS, svId_16=32, cno_16=45, elev_16=11, azim_16=44, prRes_16=-18.8, qualityInd_16=7, svUsed_16=1, health_16=1, diffCorr_16=0, smoothed_16=0, orbitSource_16=1, ephAvail_16=1, almAvail_16=0, anoAvail_16=0, aopAvail_16=0, sbasCorrUsed_16=0, rtcmCorrUsed_16=0, slasCorrUsed_16=0, spartnCorrUsed_16=0, prCorrUsed_16=0, crCorrUsed_16=0, doCorrUsed_16=0, gnssId_17=SBAS, svId_17=127, cno_17=0, elev_17=46, azim_17=137, prRes_17=0.0, qualityInd_17=1, svUsed_17=0, health_17=0, diffCorr_17=0, smoothed_17=0, orbitSource_17=7, ephAvail_17=0, almAvail_17=0, anoAvail_17=0, aopAvail_17=0, sbasCorrUsed_17=0, rtcmCorrUsed_17=0, slasCorrUsed_17=0, spartnCorrUsed_17=0, prCorrUsed_17=0, crCorrUsed_17=0, doCorrUsed_17=0, gnssId_18=SBAS, svId_18=128, cno_18=0, elev_18=23, azim_18=111, prRes_18=0.0, qualityInd_18=1, svUsed_18=0, health_18=0, diffCorr_18=0, smoothed_18=0, orbitSource_18=7, ephAvail_18=0, almAvail_18=0, anoAvail_18=0, aopAvail_18=0, sbasCorrUsed_18=0, rtcmCorrUsed_18=0, slasCorrUsed_18=0, spartnCorrUsed_18=0, prCorrUsed_18=0, crCorrUsed_18=0, doCorrUsed_18=0, gnssId_19=SBAS, svId_19=136, cno_19=0, elev_19=46, azim_19=223, prRes_19=0.0, qualityInd_19=1, svUsed_19=0, health_19=0, diffCorr_19=0, smoothed_19=0, orbitSource_19=7, ephAvail_19=0, almAvail_19=0, anoAvail_19=0, aopAvail_19=0, sbasCorrUsed_19=0, rtcmCorrUsed_19=0, slasCorrUsed_19=0, spartnCorrUsed_19=0, prCorrUsed_19=0, crCorrUsed_19=0, doCorrUsed_19=0, gnssId_20=Galileo, svId_20=3, cno_20=0, elev_20=-91, azim_20=0, prRes_20=0.0, qualityInd_20=1, svUsed_20=0, health_20=0, diffCorr_20=0, smoothed_20=0, orbitSource_20=0, ephAvail_20=0, almAvail_20=0, anoAvail_20=0, aopAvail_20=0, sbasCorrUsed_20=0, rtcmCorrUsed_20=0, slasCorrUsed_20=0, spartnCorrUsed_20=0, prCorrUsed_20=0, crCorrUsed_20=0, doCorrUsed_20=0, gnssId_21=Galileo, svId_21=5, cno_21=0, elev_21=-91, azim_21=0, prRes_21=0.0, qualityInd_21=1, svUsed_21=0, health_21=0, diffCorr_21=0, smoothed_21=0, orbitSource_21=0, ephAvail_21=0, almAvail_21=0, anoAvail_21=0, aopAvail_21=0, sbasCorrUsed_21=0, rtcmCorrUsed_21=0, slasCorrUsed_21=0, spartnCorrUsed_21=0, prCorrUsed_21=0, crCorrUsed_21=0, doCorrUsed_21=0)>";
SS = regexp(S, '\r?\n', 'split');
cno = cellfun(@str2double, regexp(SS, '(?<=cno_\d+=)\d+', 'match'), 'uniform', 0)
cno = 1×2 cell array
{[53 50 51 46 44 46 43 52 46 45 0 0]} {[53 50 51 46 44 0 0 46 43 0 52 46 0 0 0 45 0 0 0 0 0]}

More Answers (0)

Community Treasure Hunt

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

Start Hunting!