Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

2 次查看(过去 30 天)
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