How would I just select a few varaibles using regexp
1 次查看(过去 30 天)
显示 更早的评论
flag = 'KLAX 312353Z 27009KT 10SM FEW200 18/10 A3007 RMK AO2 SLP182 T01780100 10217 20178 55007'
METAR changes the amount of variables usually when reported I was hoping to get someone thought on how to do this using regexp.
I was thinking about using the regexp to find A3007. I know there are other ways, but I would like to learn how to use regexp.
This is what I have so far regexp(flag, A\4[0123456789]).
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!