Mac Catalina - Read Permissions

Hello!
I am trying to read an image from a file subdirectory and plot it.
img=imread('dir/image.png')
imshow(img)
I have double checked that I have the path and the file name correct.
If I navigate (cd) into that directory - I can run the code and get the image to show up.
I keep getting the Error"
Cannot open file ... you might not have read permissions.
For what its worth - I'm running Matlab 2015 on a Mac Catalina.

Categories

Products

Release

R2015a

Asked:

on 22 Oct 2020

Answered:

on 22 Oct 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!