function 'table' not implemented?

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

function 'table' not implemented?

Christoph Roehrs
Hi,

I'm getting an error on my octave installation. I'm using octave 4.4.1 on debian 10.
I have an old octave server with version 4.0.0 on ubuntu and its working fine there. Why is there no table function implemented?
Is there any way you could help me with my problem?
 

octave:1> round(power(10,3) * ([~,chisq,~]=chisquare_test_independence(table([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,1,1,1,1,1,1,1]))) )/power(10,3)
warning: the 'table' function is not yet implemented in Octave

Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'table' undefined near line 1 column 61

octave:1> 

Thanks a lot,
best regards,

Christoph


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: function 'table' not implemented?

Andrew Janke-2


On 3/24/20 10:15 AM, Christoph Roehrs wrote:

> Hi,
>
> I'm getting an error on my octave installation. I'm using octave 4.4.1
> on debian 10.
> I have an old octave server with version 4.0.0 on ubuntu and its working
> fine there. Why is there no table function implemented?
> Is there any way you could help me with my problem?
>  
>
> /octave:1>**round(power(10,3) *
> ([~,chisq,~]=chisquare_test_independence(table([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
> ,0,1,1,1,1,1,1,1]))) )/power(10,3)
> *warning: the 'table' function is not yet implemented in Octave*/
>
> /*Please read <https://www.octave.org/missing.html> to learn how you can
> contribute missing functionality.
> error: 'table' undefined near line 1 column 61*
> octave:1>* */
>
> Thanks a lot,
> best regards,
>
> Christoph

Hi Christoph,

The table class has not yet been implemented for core Octave; the
developers just haven't had time to get there yet.

You can try my third-party Tablicious package, which provides a
Matlab-compatible table implementation for Octave:
https://github.com/apjanke/octave-tablicious. It supports Octave 4.4.1.

Cheers,
Andrew


Reply | Threaded
Open this post in threaded view
|

Re: function 'table' not implemented?

nrjank
In reply to this post by Christoph Roehrs
> I'm getting an error on my octave installation. I'm using octave 4.4.1 on debian 10.
> I have an old octave server with version 4.0.0 on ubuntu and its working fine there. Why is there no table function implemented?

Am I reading your question correctly, are you saying the table
function works in your v4.0.0 installation but not in your v4.4.1?  or
neither?  It shouldn't work on either as I don't think there was ever
an implementaiton of table.