How can I acssess File in a compute node in my cluster

조회 수: 1 (최근 30일)
sam
sam 2012년 9월 14일
  • Hi,
  • I have files stored in path 'x'
  • I'm using this code
  • if true
spmd
index_loc=getLocalPart(index_d);
tic;
for j=index_loc
temp=imread(strcat('x/',num2str(j),'.jpg'));
end
toc
end
end
and getting error that file doesn't exist
  댓글 수: 1
Jason Ross
Jason Ross 2012년 9월 17일
Can you clarify:
  • what is index_d and what kinds of values are in it?
  • examples of what the file names look like (e.g. img54927.jpg)
Also, if you do this manually, e.g.
spmd
temp=impread('full_path_to/filename.jpg');
end
Does it work as expected? You can use spmd pretty interactively at the command prompt for troubleshooting.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by