Got Questions? Get Answers.
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:
assignment dimension mismatch

Subject: assignment dimension mismatch

From: Snow White

Date: 18 Mar, 2009 17:38:01

Message: 1 of 4

??? Subscripted assignment dimension mismatch.

Error in ==> refractive_index_estimation_fft at 96
fft_intensity_sin(x,y,:)= (corrmtx(fft_intensity(x,y,:),1))

anyone how can i solve this?

Subject: assignment dimension mismatch

From: us

Date: 18 Mar, 2009 17:49:01

Message: 2 of 4

"Snow White"
> ??? Subscripted assignment dimension mismatch.
> Error in ==> refractive_index_estimation_fft at 96
> fft_intensity_sin(x,y,:)= (corrmtx(fft_intensity(x,y,:),1))
> anyone how can i solve this...

no...
(how could we possibly help you - given the information you provide...)

a few steps, which might be helpful in debugging your code

% 1)
     dbstop if error;
% 2) run your code, it will edit your file and put you on the offending line
% 3) now look what you get, eg,

     atmp=corrmtx(fft_intensity(x,y,:),1);
     btmp=fft_intensity_sin(x,y,:);
     whos atmp btmp;
% 4) now explore why those TMPs cannot be merged...

us

Subject: assignment dimension mismatch

From: Snow White

Date: 18 Mar, 2009 18:06:02

Message: 3 of 4

fft_intensity(x,y,:)=fft(double(intensity(x,y,:)))
fft_intensity_sin(x,y,:)= (corrmtx(fft_intensity(x,y,:),1))
plot(polang,squeeze_sin(fft_intensity(x,y,:)),'bo');
hold on;
here is the piece of code that has the problem

"us " <us@neurol.unizh.ch> wrote in message <gprc6d$ger$1@fred.mathworks.com>...
> "Snow White"
> > ??? Subscripted assignment dimension mismatch.
> > Error in ==> refractive_index_estimation_fft at 96
> > fft_intensity_sin(x,y,:)= (corrmtx(fft_intensity(x,y,:),1))
> > anyone how can i solve this...
>
> no...
> (how could we possibly help you - given the information you provide...)
>
> a few steps, which might be helpful in debugging your code
>
> % 1)
> dbstop if error;
> % 2) run your code, it will edit your file and put you on the offending line
> % 3) now look what you get, eg,
>
> atmp=corrmtx(fft_intensity(x,y,:),1);
> btmp=fft_intensity_sin(x,y,:);
> whos atmp btmp;
> % 4) now explore why those TMPs cannot be merged...
>
> us

Subject: assignment dimension mismatch

From: us

Date: 18 Mar, 2009 18:17:01

Message: 4 of 4

"Snow White"
> fft_intensity(x,y,:)=fft(double(intensity(x,y,:)))
> fft_intensity_sin(x,y,:)= (corrmtx(fft_intensity(x,y,:),1))
> plot(polang,squeeze_sin(fft_intensity(x,y,:)),'bo');
> hold on;
> here is the piece of code that has the problem...

not helpful at all...
please(!), do what you were told to do in the first reply...

us

Tags for 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