From: isabelle robitaille on 10 Mar 2010 10:55 can you please help me.I get the following Error when I run my programm. ??? Index exceeds matrix dimensions. Error in ==> eingabe>huffman_Callback at 549 codewort=C{i}; my programm seems like this: .... ..... C = huffman(D,W); for i=1:8 codewort=C{i}; set(output(i),'String',num2str(codewort)); end C its a funktion witch give us the follwing code: C = '110' '111' '000' '001' '010' '011' '100' '101' the size of C is: 1 8 the class of C is: cell thank you.
From: Hans Müller on 10 Mar 2010 12:20 "isabelle robitaille" <isabelle.robitaille(a)yahoo.fr> wrote in message <hn8fcp$h27$1(a)fred.mathworks.com>... > can you please help me.I get the following Error when I run my programm. > > ??? Index exceeds matrix dimensions. > Error in ==> eingabe>huffman_Callback at 549 > codewort=C{i}; > > my programm seems like this: > ... > .... > > C = huffman(D,W); > for i=1:8 > codewort=C{i}; > set(output(i),'String',num2str(codewort)); > end > > > C its a funktion witch give us the follwing code: > C = > > '110' '111' '000' '001' '010' '011' '100' '101' > the size of C is: 1 8 > the class of C is: cell > > > thank you. Are you sure you initialized C correctly? C = { '110' '111' '000' '001' '010' '011' '100' '101'} works fine for me. Probably the function Huffman doesn't output the right format.
From: Jan Simon on 11 Mar 2010 05:20 Dear Iisabelle! > ??? Index exceeds matrix dimensions. > Error in ==> eingabe>huffman_Callback at 549 > codewort=C{i}; You can please the debugger to stop in the line, which causes the error: dbstop if all error Then you can inspect the variable C in the command line and find out, what happens. Good luck, Jan
From: Hans Müller on 11 Mar 2010 11:58 "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hnag5a$jj8$1(a)fred.mathworks.com>... > Dear Iisabelle! > > > ??? Index exceeds matrix dimensions. > > Error in ==> eingabe>huffman_Callback at 549 > > codewort=C{i}; > > You can please the debugger to stop in the line, which causes the error: > dbstop if all error > Then you can inspect the variable C in the command line and find out, what happens. > > Good luck, Jan You can please = Du kannst bitten? :)
From: Jan Simon on 11 Mar 2010 12:22 Dear Hans! > > Dear Iisabelle! > > > > > ??? Index exceeds matrix dimensions. > > > Error in ==> eingabe>huffman_Callback at 549 > > > codewort=C{i}; > > > > You can please the debugger to stop in the line, which causes the error: > > dbstop if all error > > Then you can inspect the variable C in the command line and find out, what happens. > > > > Good luck, Jan > > > You can please = Du kannst bitten? :) Natürlich! Man kann den Debugger ganz freundlich darum bitten, sich doch eben mal die Mühe zu machen, den Fehler näher zu beschreiben. Immer diese Kommandos und Befehle - das ist doch nichts. Alles Gute, Jan
|
Next
|
Last
Pages: 1 2 Prev: Error importing excel Next: N-dimensional indexing allowed for Full matrices only |