%what I am doing here is to generate series of matrices, and multiply them together, but i want to keep track of the matrix elements, i might use the plot wrong, or how to do that? can anyone help me? I am a starter of coding, thank you!
function MonodromyMdouble qsyms xV(x)=(1/sqrt(2*pi))*(1/0.5)*exp((-x^2)/(2*0.5^2));V2(x)=diff(x,2);M=[1 0;0 1];for i=1:1000 q=2*pi*rand(1); A=[1 1;-V2(q) 1-V2(q)]; M=M*A; hold on fprintf('%d\n', M(1,1)) fprintf('%d\n', M(1,2)) fprintf('%d\n', M(2,1)) fprintf('%d\n', M(2,2))end
Best Answer