Simulating using random orthogonal matrices. How can i create a massive matrix from an equation containing several random matrices and fixed matrices?
이전 댓글 표시
I need to create a massive matrix via the eqn: X= Q*L*R*An
where Q and R are random matrices, and L and An are fixed.
I am able to calculate X once, however, what id like to do is the following procedure:
1. Generate Q and R 2. Calculate X 3. Generate new Q and R 4. Calcluate X2 and then merge X2 with X,( to create Xstar) i.e a continuation of X. So that if X=2000*3 and X2= 2000*3 then Xstar=4000*3
Any idea? here som of my code: m=2000 n=3 m and n are matrix dimensions
L=some fixed matrix(2000,3); An=some fixed matrix(3,3);
R=(gallery('randhess',n)); %Upper hessenberg
I=speye(m); % Make Imm Q=I(:,randperm(m));
%Finally compute the equation
X=M*Q*L*R*An;
I suppose i should use a for loop somehow
Any idea? help is much appreciated
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!