help-octave
[Top][All Lists]
Advanced

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

Re: we need a test run on Matlab


From: Isak Delberth Davids
Subject: Re: we need a test run on Matlab
Date: Thu, 21 Dec 2017 13:01:03 +0200



On 19 December 2017 at 22:05, Vic Norton <address@hidden> wrote:

> On Dec 19, 2017, at 1:44 PM, Doug Stewart <address@hidden> wrote:
>
> Would someone try this file in matlab
> and report back the results, please.
>
>
>
> --
> DAS
>
> <testerase.m>_______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave

>> testerase
Error: File: testerase.m Line: 19 Column: 20
Unbalanced or unexpected parenthesis or bracket.

Line 19: assert (erase ({''};{''}),{''})

This is the error I get on the first run. When I
comment out line 19, I get

>> testerase
Error using assert
The condition input argument must be a scalar logical.

Error in testerase (line 3)
assert (erase ('ababa', 'aba'), 'ba’);

When I comment out line 3, I get

>> testerase
Error using assert
The condition input argument must be a scalar logical.

Error in testerase (line 4)
assert (erase ('abababa', 'aba'), 'b');

And so it goes.
_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave


I do not have MATLAB, but should line 19 in any case not be something like

        assert (erase ({''},{''},{''}))

i.e. adding a closing parenthesis and removing a suspicious semi-colon.

Cheers,
ID

reply via email to

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