No BSD License  

Highlights from
Alternative Mathematics using MATLAB 7

image thumbnail

Alternative Mathematics using MATLAB 7

by

 

13 Mar 2003 (Updated )

Self-instructive text on undergraduate algebra, statistics, differential and integral calculus.

ex186.m
% ex186.m:  Find Parameters for Ball        					     
clear all			
load ball.m;				% Load the data from file
T=ball(:,1);  Y=ball(:,2);			% Separate into two columns
options=optimset( 'TolX', 1e-10);	% Tolerance for [P(1) P(2)]
% Pm yields final Pm(1) and Pm(2)
Pm=fminsearch( @ssq2, [0 0] , options, T, Y)
ssq2min=ssq2( Pm, T, Y);		% Minimum value of ssq2
n=length(T)   				% Number of elements in T
sdev=sqrt( ssq2min/(n-1))		% Standard deviation

Contact us