No BSD License  

Highlights from
Alternative Mathematics using MATLAB 7

image thumbnail

Alternative Mathematics using MATLAB 7



13 Mar 2003 (Updated )

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

% ex183.m:  Least-Squares Fit from Data File
clear all,  format short e 
load metal.m					% Load the data from file
metal							% Verify input data
T=metal(:,1);  I=metal(:,2);			% Separate into two columns
options=optimset( 'TolX', 1e-10);		% Tolerance for p
pm=fminbnd( @ssq1, 0, 1, options, T, I)	% p at minimum
ssqmin=ssq1( pm, T, I);			% Minimum value of ssq1
n=length(T)					% Number of elements
sdev=sqrt( ssqmin/(n-1))			% Standard deviation

Contact us