Hello,
The following MATLAB documentation contains an example that uses RESNET -18 network to extract features of input images and might be of help.
For more information regarding Feature extraction using MATLAB, feel free to refer to the following documentation