[Scilab-users] Command lauch using a string

Antoine Monmayrant antoine.monmayrant at laas.fr
Fri May 15 10:39:54 CEST 2015


Le 05/14/2015 10:51 PM, paul.carrico at free.fr 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
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>



More information about the users mailing list