Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

please help : ??? Index exceeds matrix dimensions.

4 views
Skip to first unread message

isabelle robitaille

unread,
Mar 10, 2010, 10:55:05 AM3/10/10
to
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.

Hans Müller

unread,
Mar 10, 2010, 12:20:06 PM3/10/10
to
"isabelle robitaille" <isabelle....@yahoo.fr> wrote in message <hn8fcp$h27$1...@fred.mathworks.com>...


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.

Jan Simon

unread,
Mar 11, 2010, 5:20:26 AM3/11/10
to
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

Hans Müller

unread,
Mar 11, 2010, 11:58:07 AM3/11/10
to
"Jan Simon" <matlab.T...@nMINUSsimon.de> wrote in message <hnag5a$jj8$1...@fred.mathworks.com>...


You can please = Du kannst bitten? :)

Jan Simon

unread,
Mar 11, 2010, 12:22:21 PM3/11/10
to
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

Leclerc

unread,
Mar 11, 2010, 1:34:56 PM3/11/10
to
>
> 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.
>
Ja, Ja,
Whatever it means....

Jan Simon

unread,
Mar 11, 2010, 2:46:05 PM3/11/10
to
Dear Leclerc!

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

Leclerc

unread,
Mar 11, 2010, 5:30:58 PM3/11/10
to
Hi,

> 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

Hans Müller

unread,
Mar 11, 2010, 5:57:04 PM3/11/10
to
Musste eben lachen, als ich das gelesen hatte. You can please the debugger kam etwas unklar bei mir an - du kannst dem Debugger eine Freude machen... mag er lieber Rosen oder Schokolade?

Grüsse

Jan Simon

unread,
Mar 11, 2010, 6:07:02 PM3/11/10
to
Dear Leclerc!

> 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

0 new messages