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:
urgent: Inserting matrix using for loop ??? Subscripted assignment dimension mismatch

Subject: urgent: Inserting matrix using for loop ??? Subscripted assignment dimension mismatch

From: Vijay

Date: 20 Sep, 2010 12:25:04

Message: 1 of 2

i am getting error.........
for k = 1:numsymb % numsymb=201
TxSpectrums(k,carriers) = CarrCmplx(k,:);
end
where
TxSpectrums = zeros(201,512)
CarrCmplx size of 201x10
Carriers is (1x200double)

I am getting error
 ??? Subscripted assignment dimension mismatch.

Subject: urgent: Inserting matrix using for loop ??? Subscripted assignment dimension mismatch

From: Sean

Date: 20 Sep, 2010 12:56:05

Message: 2 of 2

"Vijay " <sharma07vijay@gmail.com> wrote in message <i77jr0$a7l$1@fred.mathworks.com>...
> i am getting error.........
> for k = 1:numsymb % numsymb=201
> TxSpectrums(k,carriers) = CarrCmplx(k,:);
> end
> where
> TxSpectrums = zeros(201,512)
> CarrCmplx size of 201x10
> Carriers is (1x200double)
>
> I am getting error
> ??? Subscripted assignment dimension mismatch.

It's trying to fit a 1x10 into a 1x200. If course there's going to be an error.

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