How to modify the input format?

Hi everyone,
I have Capsule Net code and the input data are .mat format originally. The thing is, that I would like to run it on my data which are .shp and .tiff
I am trying to convert data to .mat format in Matlab.
But, is there a way how to do it directly in the code? Maybe function or something else?
Thank you.