Changeset 91 for trunk/src/civ.m


Ignore:
Timestamp:
May 21, 2010, 5:13:50 PM (14 years ago)
Author:
gostiaux
Message:

Solution for the compatibility of fprintf with windows : the \ characters in the filenames have to be replaced by
before launching fprintf;

This was done in BATCH_CIV1 callback, to test urgently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r90 r91  
    48274827%             textout=char(textcmx);
    48284828par.filename_ima_a=regexprep(par.filename_ima_a,'.png','');
    4829 par.filename_ima_b=regexprep(par.filename_ima_b,'.png','');
     4829par.filename_ima_b=regexprep(par.filename_ima_b,'.png','');% bug : .png appears two times ?
    48304830   fid=fopen([filename '.cmx'],'w');
    48314831fprintf(fid,['##############   CMX file' '\n' ]);
    4832  fprintf(fid,   ['FirstImage ' regexprep(par.filename_ima_a,'\\','\\\\') '\n' ]);
    4833  fprintf(fid,   ['LastImage  ' regexprep(par.filename_ima_b,'\\','\\\\') '\n' ]);
     4832 fprintf(fid,   ['FirstImage ' regexprep(par.filename_ima_a,'\\','\\\\') '\n' ]);% for windows compatibility
     4833 fprintf(fid,   ['LastImage  ' regexprep(par.filename_ima_b,'\\','\\\\') '\n' ]);% for windows compatibility
    48344834  fprintf(fid,  ['XX' '\n' ]);
    48354835  fprintf(fid,  ['Mask ' par.maskflag '\n' ]);
Note: See TracChangeset for help on using the changeset viewer.