On 2 May 2012 13:01, Érico Porto <ericoporto2...@gmail.com> wrote:
> Hello,
>
> I'm trying to run a single line here:
>
> octave:1> version
> ans = 3.2.4
> octave:2> huffmandict([1 2],[0.9 0.1])
> error: invalid assignment to cs-list outside multiple assignment.
> error: assignment to cell array failed
> error: assignment failed, or no method for `<unknown type> = null_matrix'
> error: called from:
> error:   /usr/share/octave/packages/3.2/communications-1.0.10/huffmandict.m
> at line 118, column 15
>
> I'm using Ubuntu 11.10 and default octave from apt-get. This runs
>
> uname -a
> Linux erico-OptiPlex-GX270 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8
> 17:34:21 UTC 2012 i686 i686 i386 GNU/Linux
>
> Regards
>
> Érico V. Porto

Hi Érico,

this functions belongs to an octave package (communications) so you
should have reported it to the octave-forge mailing list. Anyway,
you're using a quite old version of octave and communications package.
With octave 3.6.1 and communications 1.1.1 I don't get any error:

> huffmandict([1 2],[0.9 0.1])
ans =
{
  [1,1] = 0
  [1,2] =  1
}


You should upgrade.
Carnë

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to