[Scilab-users] Re : Re: Command lauch using a string
paul.carrico at free.fr
paul.carrico at free.fr
Fri May 15 10:54:32 CEST 2015
Dear Stefan
You're right it was a quote issue - thanks to you and Antine for the suggestions
Paul
----- Mail d'origine -----
De: Stefan Du Rietz <sdr at durietz.se>
À: users at lists.scilab.org
Envoyé: Fri, 15 May 2015 10:07:48 +0200 (CEST)
Objet: Re: [Scilab-users] Command lauch using a string
On 2015-05-14 22:51, paul.carrico at free.fr wrote:
> 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
>
> Thanks
>
> Paul
>
Have you tried to display the string A in Scilab?
-->PATH_IMAGEMAGICK = "c:\Path\to\Imagemagick"
PATH_IMAGEMAGICK =
c:\Path\to\Imagemagick
// This is probably not what you want:
-->A = 'PATH_IMAGEMAGICK + ''\convert -delay 50 '
A =
PATH_IMAGEMAGICK + '\convert -delay 50
// You probably want this:
-->A = PATH_IMAGEMAGICK + '\convert -delay 50 '
A =
c:\Path\to\Imagemagick\convert -delay 50
Regards
Stefan
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
More information about the users
mailing list