How can I jackknife using this code and then plot it?
2 views (last 30 days)
Show older comments
%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
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!