Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
SteveH
SteveH am 16 Nov. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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 Kommentare
Image Analyst
Image Analyst am 17 Nov. 2015
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 am 17 Nov. 2015
thanks Walter. I'll use fullfile(). learn something new every day.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by