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

2 Ansichten (letzte 30 Tage)
Amanda Lococo
Amanda Lococo am 20 Apr. 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

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by