User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » ece420 hw10-5 Page [1]  
Ann
Veteran
356 Posts
user info
edit post

Hey,

Anyone knows how to do the last part of 10-5, I got it up 'til the part d, building the detection filters and getting y1[n], any help is greatly appreciated!

This is what I have so far for that part, but I am getting errors:
for n = 1:400
for m = 1:50
h1(m) = p1(50+1-m)
end
y1(n) = h1(m)*s1(n+1-m);
end

??? Subscript indices must either be real positive integers or logicals.

Error in ==> hw10prob5 at 58
y1(n) = h1(m).*s1(n+1-m);


Thanks,
Ann :-D

3/21/2006 5:27:15 PM

Pi Master
All American
18151 Posts
user info
edit post

I had the same problem for a while. Look closely at your two indices. You don't necessarily want to go through all 50 for m.

3/21/2006 7:43:57 PM

Pi Master
All American
18151 Posts
user info
edit post

10-6 is gonna suck, since I put in a while loop to keep generating spreading sequences until they're orthogonal. For M=50, that was fine... but M=1000?

This might take a while.

[Edited on March 21, 2006 at 7:56 PM. Reason : Yeah, that took a few minutes]

3/21/2006 7:49:52 PM

 Message Boards » Study Hall » ece420 hw10-5 Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.