[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Octave-bug-tracker] [bug #59950] exist function
From: |
Delorme, Arnaud |
Subject: |
Re: [Octave-bug-tracker] [bug #59950] exist function |
Date: |
Sat, 30 Jan 2021 19:55:48 -0000 |
> exist (table({'foo','bar'}),'’)
0
> exist (table({'foo','bar'}),[])
0
> exist (table({'foo','bar'}),table())
Error using exist
The first input to exist must be a string scalar or character vector.
>
> If those all return 0 and no error, then I guess the checks are done something
> like this:
>
>
> if (nargin == 1)
> if (isempty (first_arg))
> return false;
> else
> second_arg = ""; ## means search for anything
> endif
> elseif (nargin == 2
> && (isempty (first_arg) || isempty (second_arg)))
> return false;
> end
> ## Check argument types and do the real exist checks ...
>
>
> If one or more of those fail, then maybe someone else can figure out an order
> for the argument checks that is both simple and produces the same results as
> Matlab.
>
>
> _______________________________________________________
>
> Reply to this item at:
>
>
> <https://urldefense.com/v3/__https://savannah.gnu.org/bugs/?59950__;!!Mih3wA!TFgOdSWEd0dJLBqJIJyNRgGPvxufHUAF6MZWE18qMT3oKybNi-DV2TDGU8ns$
> >
>
> _______________________________________________
> Message sent via Savannah
>
> https://urldefense.com/v3/__https://savannah.gnu.org/__;!!Mih3wA!TFgOdSWEd0dJLBqJIJyNRgGPvxufHUAF6MZWE18qMT3oKybNi-DV2aO35UHX$
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Octave-bug-tracker] [bug #59950] exist function,
Delorme, Arnaud <=