image - MATLAB - variable in .dat file save command -


I am converting a .tif image into double format, and the new file name is stored in a variable. When typing the save command, the script is executed, but the file is not saved unless I manually type 'command-file-name.dat' in the command (instead of the variable). That is, the variable is not working in the command to save.

Am I forgetting something which I am doing wrong?

Code below

 % user image selection [imagerawname imagerawpath] = uigetfile ('* .tif', 'double convert - select raw image file', directory) ; % Image Location String ImageLock = Create Stracket (Imagervapath, Imagerwamen); Read pack% = and imread (imagine) to change in double image; Imagedbl = double (image); % save as' savepath 'imagedbl -ascii fprintf (' \ n Double conversion has been saved. \ n .dat file to save save path = strcat (imagerawpath, imagerawname (1: (end-4)), '-dbl' '.dat' '' I feel like you are saving in the named file, 'code' 'savepath' . Try it:  
  Save (SavePath, 'ImageBuzz ',' -cci ')    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -