Cannot locate any files
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi, I'm using MATLAB online and am tryhing to get the program to analyse images within a folder on my desktop. I have tried absolutely everything but matlab cannot seem to find any files on my computer at all. the error is presenting with the imagedatastore function. I have tried using dir but that still generates the error file or folders cannot be found. Is this an issue with the permissions due to it being matlab online?
imds = imageDatastore('C:\Users\donal\Desktop\5th Year Semester 2\5BIO7 Advanced Medical Imaging\5BIO7_tutorial\*.jpg');
imgs = readall(imds);
%% Read in image from stack
a = readimage(imds,3); % Read in 3rd image from directory
a = im2gray (a);
a = imresize (a, 0.5); % Resize image to correct format for reconstruction
a = im2double(a); % Convert image to numeric representation
댓글 수: 0
답변 (1개)
Jan
2023년 3월 12일
Yes, Matlab Online does not access local files. See e.g. https://www.mathworks.com/matlabcentral/answers/1573628-matlab-online-supports-reading-local-files .
Use Matlab Drive instead: https://www.mathworks.com/help/matlab/matlab_env/access-files-on-matlab-drive.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!