random matrix with fix data
    3 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
 Hi all,
I generated A matrix including random and normal variable as below:
   A=randn(4); 
   Whenever I run this command, different data will be generated. 
   How can I generate A matrix with fixed random variable. 
   I mean in every running A matrix doesn't change.
Thanks,
0 Commenti
Risposte (1)
  Azzi Abdelmalek
      
      
 il 1 Gen 2013
        s=rng;
randn(4)
rng(s),
randn(4)
2 Commenti
  Azzi Abdelmalek
      
      
 il 1 Gen 2013
				
      Modificato: Azzi Abdelmalek
      
      
 il 1 Gen 2013
  
			rng restore the original generator settings. Have you tried it? and you can also look at the matlab help
help rng
Vedere anche
Categorie
				Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

