See the below code:
clc;
clear;
%rng('default')
t = 1900;
u = randn(t+100,1);
e = randn(t+100,1);
ep = randn(t+100,1);
A = 0;
x=zeros(t+100,1);
for iii = 1:5000
for i=2:t+100
x(i) = 0.99*x(i-1)+u(i);
u(i) = 0.5*u(i-1)+e(i);
ep(i)=0.99*u(i);
y(i) = A*x(i-1)+ep(i);
end
y
is a 1 x 2000
but I want to be a 2000 x 1
, I used y'
but this doesnt seem to work when I perform later operations on y. My MATLAB seems to flip between a 1 x 2000
and a 2000 x 1
Thanks in advance