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 10:51:04 -0400

On 20-May-2010, Ben Abbott wrote:

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

I don't know why file_in_path should return [] instead of "" if no
file exists.

jwe


reply via email to

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