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: John W. Eaton
Subject: RE: About "warning: implicit conversion from matrix to string"
Date: Thu, 20 May 2010 09:42:33 -0400

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 ""?

Or, maybe we should make it so that

  exist ([], ...)

does the check instead of assuming the first argument is a character string?

jwe


reply via email to

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