random matrix with fix data
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Azzi Abdelmalek
am 1 Jan. 2013
s=rng;
randn(4)
rng(s),
randn(4)
2 Kommentare
Azzi Abdelmalek
am 1 Jan. 2013
Bearbeitet: Azzi Abdelmalek
am 1 Jan. 2013
rng restore the original generator settings. Have you tried it? and you can also look at the matlab help
help rng
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!