matlab - Opening image and text file with the same name -
My problem is that I have a folder in which there are some images, such as a.jpg, b.jpg, and Similarly, text files in another folder include a.txt, b.txt, and so on. I will select an image like You need to remove the file name (such as Please read the documentation for more information. a.jpg is selected with the image, the text file
a.txt is also displayed. How to do it
'a' / code>) Full-file name (e.g.,
'a.jpg' ).
You can use the fileparts command for this termination in the
'A.jpg' for
'a' and < Code> 'jpg'
Comments
Post a Comment