Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SigmaParametri = [1, 2, ...];
- RParametri = [11, 22, ...];
- MuParametri = [0.1, 0.2, ...];
- NumSimulazioni = 100;
- NumStep = 1000;
- MatriceSuprema = zeros(NumSimulazioni, NumStep, length(SigmaParametri), length(RParametri), length(MuParametri));
- for SigmaIndex = 1:length(SigmaParametri)
- for RIndex = 1:length(RParametri)
- for MuIndex = 1:length(MuParametri)
- Sigma = SigmaParametri(SigmaIndex);
- R = RParametri(RIndex);
- Mu = MuParametri(MuIndex);
- for SimIndex = 1:NumSimulazioni
- Path = zeros(NumStep);
- for Step = 1:NumStep
- Path(Step) = 123; % Calcola il valore dello step usando solo 'Step' come indice
- end
- MatriceSuprema(SimIndex, :, SigmaIndex, RIndex, MuIndex) = Path;
- end
- % Se a questo punto devi fare la regressione:
- MatriceDaRegredire = MatriceSuprema(:, :, SigmaIndex, RIndex, MuIndex);
- Regressione(MatriceDaRegredire); % Poi che devi fa qui? Dove ti salvi il risultato? Boh!
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement