Run in Matlab please

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

Run in Matlab please

JuanPi
What is the output of

a = [];
a != 1
a == 1

?

Thanks


--
JuanPi Carbajal
Public GnuPG key: 9C5B72BF
-----
The end of funding: "Many researchers were caught up in a web of
increasing exaggeration."
- Hans Moravec

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Run in Matlab please

José Luis García Pallero
2016-03-23 22:53 GMT+01:00 JuanPi <[hidden email]>:
> What is the output of
>
> a = [];
> a != 1
> a == 1

I suppose you mean a~=1 as the != operator does not exist in Matlab.
In both cases, the result is

ans =

     []

I've used the 7.14.0.739 (R2012a) Linux version

>
> ?
>
> Thanks
>
>
> --
> JuanPi Carbajal
> Public GnuPG key: 9C5B72BF
> -----
> The end of funding: "Many researchers were caught up in a web of
> increasing exaggeration."
> - Hans Moravec
>
> _______________________________________________
> Help-octave mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/help-octave



--
*****************************************
José Luis García Pallero
[hidden email]
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Run in Matlab please

JuanPi
On Wed, Mar 23, 2016 at 11:10 PM, José Luis García Pallero
<[hidden email]> wrote:

> 2016-03-23 22:53 GMT+01:00 JuanPi <[hidden email]>:
>> What is the output of
>>
>> a = [];
>> a != 1
>> a == 1
>
> I suppose you mean a~=1 as the != operator does not exist in Matlab.
> In both cases, the result is
>
> ans =
>
>      []
>
> I've used the 7.14.0.739 (R2012a) Linux version
>
>>
>> ?
>>
>> Thanks
>>
>>
>> --
>> JuanPi Carbajal
>> Public GnuPG key: 9C5B72BF
>> -----
>> The end of funding: "Many researchers were caught up in a web of
>> increasing exaggeration."
>> - Hans Moravec
>>
>> _______________________________________________
>> Help-octave mailing list
>> [hidden email]
>> https://lists.gnu.org/mailman/listinfo/help-octave
>
>
>
> --
> *****************************************
> José Luis García Pallero
> [hidden email]
> (o<
> / / \
> V_/_
> Use Debian GNU/Linux and enjoy!
> *****************************************

Thanks!

Ok, we are just sticking to this behavior. Good.


--
JuanPi Carbajal
Public GnuPG key: 9C5B72BF
-----
The end of funding: "Many researchers were caught up in a web of
increasing exaggeration."
- Hans Moravec

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