Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

This snippit works in base program, but not in a function.

조회 수: 2 (최근 30일)
SteveH
SteveH 2015년 11월 16일
마감: MATLAB Answer Bot 2021년 8월 20일
Have tried strjoin and several other commads with no success. Help?
opathName=[opath,'\',iname, num2str(a),'.tif'];
imwrite(uint16(I (:,:,a)),opath_ opathName,'tif','Compression','none'); tiff
  댓글 수: 7
Image Analyst
Image Analyst 2015년 11월 17일
That still won't work. What a mess - I'd much rather maintain Walter's code than yours, and I suggest you take his suggestion. By the way, to fix, change opathName to opath_name.
SteveH
SteveH 2015년 11월 17일
thanks Walter. I'll use fullfile(). learn something new every day.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by