How to write a program for Pseudo Random Binary sequence in matlab?
    9 views (last 30 days)
  
       Show older comments
    
    anu chauhan
 on 12 Jul 2016
  
    
    
    
    
    Commented: Walter Roberson
      
      
 on 15 Jul 2016
            i need a program on PRBS
0 Comments
Accepted Answer
  Walter Roberson
      
      
 on 12 Jul 2016
        PRBS = @(N) randi([0 1], 1, N);
This takes one parameter, which is the number of values to generate, and returns a PRBS of that length.
0 Comments
More Answers (1)
  anu chauhan
 on 15 Jul 2016
        
      Edited: Walter Roberson
      
      
 on 15 Jul 2016
  
      
      1 Comment
  Walter Roberson
      
      
 on 15 Jul 2016
				When you are varying which values, you are not able to obtain what results?
I do not see any use of PRBS in this code, so it would appear to be a completely new Question rather than a follow-on question.
See Also
Categories
				Find more on Sources in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
