help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: About "warning: implicit conversion from matrix to string"


From: Ben Abbott
Subject: RE: About "warning: implicit conversion from matrix to string"
Date: Thu, 20 May 2010 09:53:33 -0400

On Thursday, May 20, 2010, at 09:42AM, "John W. Eaton" <address@hidden> wrote:
>On 20-May-2010, Richardson, Anthony wrote:
>
>| Alternatively, replace the above line in print.m with:
>| 
>|     if(isempty(ghostscript_binary))
>|       have_ghostscript = 0;
>|     else
>|       have_ghostscript = (exist (ghostscript_binary, "file") == 2);
>|     endif
>| 
>| to make the warning go away.
>
>How does ghostscript_binary ever get set to [] instead of ""?
>

The following command produces the empty result ...

    ghostscript_binary = file_in_path (EXEC_PATH, gs_binaries{ng});

For example, typing the following returns [] 0x0.

    file_in_path (EXEC_PATH, "FOOBAR")

Ben


reply via email to

[Prev in Thread] Current Thread [Next in Thread]