we need a test run on Matlab

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

we need a test run on Matlab

Doug Stewart-4
Would someone try this file in matlab 
and report back the results, please.



--
DASCertificate for 206392


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

testerase.m (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: we need a test run on Matlab

Vic Norton-2

> On Dec 19, 2017, at 1:44 PM, Doug Stewart <[hidden email]> wrote:
>
> Would someone try this file in matlab
> and report back the results, please.
>
>
>
> --
> DAS
>
> <testerase.m>_______________________________________________
> Help-octave mailing list
> [hidden email]
> 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
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: we need a test run on Matlab

Isak Delberth Davids
In reply to this post by Doug Stewart-4


On 19 December 2017 at 22:05, Vic Norton <[hidden email]> wrote:

> On Dec 19, 2017, at 1:44 PM, Doug Stewart <[hidden email]> wrote:
>
> Would someone try this file in matlab
> and report back the results, please.
>
>
>
> --
> DAS
>
> <testerase.m>_______________________________________________
> Help-octave mailing list
> [hidden email]
> 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
[hidden email]
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

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave