octave-maintainers
[Top][All Lists]
Advanced

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

Re: Need test run in Matlab


From: Christian Himpe
Subject: Re: Need test run in Matlab
Date: Tue, 29 Jan 2019 20:26:27 +0100

Dear John,

attached is a text file with the requested MATLAB output.

Cheers

Christian

On Tue, 29 Jan 2019 12:07:04 -0500
"John W. Eaton" <address@hidden> wrote:

> I'm attaching another set of tests.  This time there is just one
> script to execute:
> 
> 1. Unpack the tar file.  This will create a directory called
> test-files.
> 
> 2. In Matlab, cd to that directory and execute
> 
>       test_script
> 
>     to run the tests.
> 
> Please report the output here.
> 
> Thanks,
> 
> jwe
> 
> 
> On 1/29/19 10:15 AM, John W. Eaton wrote:
> > On 1/28/19 4:03 PM, Michele wrote:  
> >> Dear jwe,
> >>
> >> I attach the resulting diary.  
> > 
> > Thanks.  Unfortunately, those tests may not have been the right
> > ones to run to answer my questions.  I'm trying to figure out when
> > eval will parse something like
> > 
> >    eval ("foo -opt")
> > 
> > as an expression (subtract the value of opt from foo) or as a
> > command (call the function foo with the character string argument
> > "-opt").  It seems as though eval may never evaluate its argument
> > as a command-style function call if it is called with an output
> > value:
> > 
> >    val = eval ("foo -opt")
> > 
> > Is that correct?  I suppose this would be similar to writing
> > 
> >    val = foo -opt
> > 
> > in which case the "foo -opt" part is not recognized as a
> > command-style function call because that can only happen at the
> > beginning of an expression.
> > 
> > Also the idea of the test like this:
> > 
> >    function f (foo)
> >      eval ("foo -opt")
> >    end
> >    f ()
> >    f (1)
> > 
> > was to determine whether the mere existence of a symbol was
> > sufficient for eval to treat this as a subtraction or is it
> > necessary for the function parameter "foo" to be defined?
> > 
> > Also, is this different without the eval?  What happens for
> > something like
> > 
> >    function f (foo)
> >      foo -opt
> >    end
> > 
> > Is this always handled as a subtraction or does it depend on
> > whether f is called with an argument?
> > 
> > In both cases, I'm assuming the function "foo" exists.
> > 
> > I'll try to come up with another set of tests.
> > 
> > jwe
> >   
> 

Attachment: matlab2018a_output.txt
Description: Text document


reply via email to

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