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

2 次查看(过去 30 天)
%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 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by