spatial data (.png)
001.png
002.png
003.png
.
.
.
00n.png
to
001.mat
002.mat
003.mat
.
.
.
00n.mat
spatial data (.png)
001.png
002.png
003.png
.
.
.
00n.png
to
001.mat
002.mat
003.mat
.
.
.
00n.mat
Copyright © 2021 Jogjafile Inc.
Complementing the answer of EitanT, if you have files which does not have such filename restrictions, such as:
You can use
dirfunction, which gives you more flexibility. For example:filepartsis a MATLAB function which decomposes the filename in file path, radical and extension. E.g., if I have the file/home/user/photo.png, this function will return:File format error
OP got the following error:
I've download his original *.png images and tested them with
filelinux command. My output:imreadcan't open these files as'png'because they are already stored as.mat.