Code covered by the BSD License
-
[binEdges,N]=decayHistogram(d...
decayHistogram : histogram of decay times
-
generateDecayData(sampleTime,...
generateDecayData : simulate the signal from decay of mixture of isotopes
-
pendulumDE(tVals,omega0,start...
Copyright 2008-2009 The MathWorks, Inc.
-
pendulumDataSimulated(x0, pen...
Generate simulated pendulum data and write this to an Excel spreadsheet.
-
pendulumFitFunction(t,y,param...
pendulumFitFunction : returns the fit value of pendulum model to
-
pendulumSimulation(x0,g,len)
pendulumSimulation : Simulation of pendulum
-
readExperimentalData(inFileNa...
readExperimentalData : Read in the pendulum experiment data from an Excel
-
analyseDecay.m
-
lecture_2_mmcd.m
-
View all files
from
MATLAB in Physics - Data Analysis
by Matt McDonnell
The second lecture in a series on using MATLAB in undergraduate physics courses.
|
| pendulumFitFunction(t,y,params)
|
function fval = pendulumFitFunction(t,y,params)
% pendulumFitFunction : returns the fit value of pendulum model to
% experimental data (t,y)
% Copyright 2008-2009 The MathWorks, Inc.
% Predicted motion
[tout, yout] = pendulumDE(t,params(1),params(2));
% Fitness value
fval = norm(y - yout(:,1));
|
|
Contact us at files@mathworks.com