How can I jackknife using this code and then plot it?

2 visualizaciones (últimos 30 días)
Amanda Lococo
Amanda Lococo el 20 de Abr. de 2018
%Simulate the Ising Model for K and N_side.
clear all;
% define K vector
K = 0.1:0.05:0.6;
% define blerg
N_side = 40; %Number of spins on a side
N_Moves = 10^6; % was 10^7
sampling_frequency = 100; % was 10000
% define container for traj data
K_output = zeros(1,length(K));
count=1;
% loop over various K
for ii = K
ising = Initalize(ii,N_side);
traj = Trajectory(ising,N_Moves,sampling_frequency);
[E,M] = ExtractTrajectory(traj);
% mov = Visualize(traj);
K_output(count) = M(end);
count = count+1;
end

Respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by