??? 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.
> ??? 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? :)
> > 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
It was just a short demonstration that my German is better than my English. I really hope that my Matlab is better than my English.
Of course I meant: You can plead the debugger for stopping...
Jan
> It was just a short demonstration that my German is better than my
> English. I really hope that my Matlab is better than my English.
> Of course I meant: You can plead the debugger for stopping...
>
I do apologise,
I didn't want to offend anybody, I just tried to make a (obviously
unsuccessful) joke of entering discussion in the language I don't speak.
cheers,
Gordan
Grüsse
> I didn't want to offend anybody, I just tried to make a (obviously
> unsuccessful) joke of entering discussion in the language I don't speak.
No problem! It's me who's obviously unsuccessful with pleasing the debugger.
Jan