Le 05/14/2015 10:51 PM, [email protected] a écrit :
Dear All,
I've been thinking in creating a string in order to run specific instructions
afterward (I'm under Windows OS for the moement);
An example of my code:
#########################################################################
A = 'PATH_IMAGEMAGICK + ''\convert -delay 50 ';
for i = 1 : number
A = A + '-repage 1218x722+0+0 sample_geometry" + string(i) + ".gif ';
end
A = A + '-loop 0 superposition_anime.gif'',''-echo''';
dos(A)
#########################################################################
It fails while if I replace the string A by the complete sentence, it works
fine showing that's probably a format issue ... but honnestly I don't find the
right one
Any suggestion will be appreciated
Could this be due to the fact that you are using a mix of " and ' to
start and end the different bits of your string?
Try replacing:
'-repage 1218x722+0+0 sample_geometry" -> '-repage 1218x722+0+0
sample_geometry'
".gif ' -> '.gif '
Cheers,
Antoine
Thanks
Paul
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users