How to check a pattern in a string in matlab?

前端 未结 2 1353
陌清茗
陌清茗 2021-01-15 18:27

I want to check if a specific pattern was in a string to do some action

[filename pathname]=uigetfile
fullpath=[pathname filename]

In my p

2条回答
  •  忘掉有多难
    2021-01-15 19:11

    You can select a folder and then import only those pictures which match a pattern by using directly dir() and wildcard *:

    dir('C:\Users\username\Desktop\folder\*_cam*.jpg')
    

提交回复
热议问题