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

조회 수: 2 (최근 30일)
Amanda Lococo
Amanda Lococo 2018년 4월 20일
%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