Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Subscripted assignment dimension mismatch.

Subject: Subscripted assignment dimension mismatch.

From: mahesh

Date: 8 Apr, 2010 17:03:24

Message: 1 of 7

Dear frds,

I have following errors.....

??? Subscripted assignment dimension mismatch.

....
so what is the meaning of this error and what is the solution for it.


thanks

Subject: Subscripted assignment dimension mismatch.

From: Jan Simon

Date: 8 Apr, 2010 17:48:08

Message: 2 of 7

Dear Mahesh!

> I have following errors.....
>
> ??? Subscripted assignment dimension mismatch.
> ....
> so what is the meaning of this error and what is the solution for it.

I really hope, that it is not *you* but your Matlab which has this error.
The error message means, that you have accessed an array with not matching indices.

Without showing us the corresponding commands, there is definitely no chance to tell you how to fix them.

Jan

Subject: Subscripted assignment dimension mismatch.

From: dpb

Date: 8 Apr, 2010 17:47:30

Message: 3 of 7

mahesh wrote:
> Dear frds,
>
> I have following errors.....
>
> ??? Subscripted assignment dimension mismatch.
>
> ....
> so what is the meaning of this error and what is the solution for it.

a) a subscripted expression to be assigned doesn't agree w/ a target in
dimension

b) fix the mismatch...

size() % may turn out useful here in diagnostics

--

Subject: Subscripted assignment dimension mismatch.

From: someone

Date: 8 Apr, 2010 18:30:10

Message: 4 of 7

"mahesh " <mashinde05@gmail.com> wrote in message <hpl28r$bro$1@fred.mathworks.com>...
> Dear frds,
>
> I have following errors.....
>
> ??? Subscripted assignment dimension mismatch.
>
> ....
> so what is the meaning of this error and what is the solution for it.
>
>
> thanks

You want my help and you're calling me a frd?
How dare you!

Subject: Subscripted assignment dimension mismatch.

From: Jan Simon

Date: 8 Apr, 2010 22:48:22

Message: 5 of 7

Dear Someone!

> > Dear frds,
>
> You want my help and you're calling me a frd?
> How dare you!

What's the problem?
  http://www.acronymfinder.com/FRD.html
I've decided for "Flag Room Defence (CTF gaming)", because CTF sound very Matlabish.

But this prefers "Formerly Restricted Data":
  http://www.all-acronyms.com/FRD

Here I found some more friendly and more unfriendly descriptions:
  http://www.urbandictionary.com/define.php?term=frd

I'm getting old. Jan

Subject: Subscripted assignment dimension mismatch.

From: pablo

Date: 5 Aug, 2010 22:32:05

Message: 6 of 7

I have the same error when a use the following script..

OUTPUT=[]

   for i=1:Np
        OUTPUT = [OUTPUT; row D];

   end

OUTFILE=strcat('OUTPUT',num2str(m),'.txt')
save(OUTFILE,'OUTPUT','-ascii', '-double')


may somebody help me?



"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <hpl4so$r5d$1@fred.mathworks.com>...
> Dear Mahesh!
>
> > I have following errors.....
> >
> > ??? Subscripted assignment dimension mismatch.
> > ....
> > so what is the meaning of this error and what is the solution for it.
>
> I really hope, that it is not *you* but your Matlab which has this error.
> The error message means, that you have accessed an array with not matching indices.
>
> Without showing us the corresponding commands, there is definitely no chance to tell you how to fix them.
>
> Jan

Subject: Subscripted assignment dimension mismatch.

From: Ravi Rastogi

Date: 6 Aug, 2010 12:31:05

Message: 7 of 7

Hi Pablo,

From what i can tell from the limited information that u gave, if the length of all your "row D" that you are concatenating are not same then you will get assignment dimension mismatch error.

Ravi

"pablo " <pabloe_1@hotmail.com> wrote in message <i3fe54$phn$1@fred.mathworks.com>...
> I have the same error when a use the following script..
>
> OUTPUT=[]
>
> for i=1:Np
> OUTPUT = [OUTPUT; row D];
>
> end
>
> OUTFILE=strcat('OUTPUT',num2str(m),'.txt')
> save(OUTFILE,'OUTPUT','-ascii', '-double')
>
>
> may somebody help me?
>
>
>
> "Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <hpl4so$r5d$1@fred.mathworks.com>...
> > Dear Mahesh!
> >
> > > I have following errors.....
> > >
> > > ??? Subscripted assignment dimension mismatch.
> > > ....
> > > so what is the meaning of this error and what is the solution for it.
> >
> > I really hope, that it is not *you* but your Matlab which has this error.
> > The error message means, that you have accessed an array with not matching indices.
> >
> > Without showing us the corresponding commands, there is definitely no chance to tell you how to fix them.
> >
> > Jan

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us