mseq31primpoly75.m ( File view )

  • By johnvarma 2016-06-10
  • View(s):0
  • Download(s):0
  • Point(s): 1
			clear all;
clc;
%%%%%% enter tap weights as an array h=[h1,h2,..h6] %%%%%%%%%%%
%h=[0 0 0 0 1 1];% 103
%h=[1 0 0 1 1 1];%147
h=[1 1 1 0 1];%75
%h=[0 0 1 0 1];%45
%h=[1 1 0 0 1 1];%163
%h=[1 0 0 0 0 1];%141
%%%%%% enter intial state of the register as an array u=[u1 u2 u3 u4 u5 u6]  %%%%%%%%%%%
%fid=fopen('/home/users/arun/sscdma/project/mseq31_primploy45.txt','a');
for i=1:31
   u=dec2bin(i,5);
   u=u-48;
	u(6)=0;
	output=[];

	for shift=1:31
    output=[output,u(1)];
  	 temp=u(1);
    for n=2:6
      u(n-1)=xor( u(n),(h(n-1)*temp) );
   	 end
   %u(1:6)
   end
   %output
   t=[output,output];
   %t=output(1,2:31);
   if t(1,2:31)==t(1,2*(2:31)-1)
      charphase=output;
      s='bingo'
   end
 end

save mseq31primpoly75.m
...
...
(Please download the complete source code to view)
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
MMSE_lindet.m832.00 B03-12-01|04:11
MMSE_lindet10users.m853.00 B03-12-01|04:11
mseq31primpoly75.m1.12 kB06-12-12|14:49
MFbank.m676.00 B06-12-12|15:04
MFbank10users.m838.00 B03-12-01|04:11
...
Sponsored links

mseq31primpoly75.m (2.58 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D