Home > bobstuff > quadrat.m

quadrat

PURPOSE ^

QUADRAT(x) returns the quadratic solution for use with LINREG1.

SYNOPSIS ^

function y=quadrat(x)

DESCRIPTION ^

 QUADRAT(x) returns the quadratic solution for use with LINREG1.

 y=QUADRAT(x) returns the value
    y = x^2 + B*x + C
 for use with LINREG1.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 ver. 1: 11/25/96 (RB)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function y=quadrat(x)
0002 
0003 % QUADRAT(x) returns the quadratic solution for use with LINREG1.
0004 %
0005 % y=QUADRAT(x) returns the value
0006 %    y = x^2 + B*x + C
0007 % for use with LINREG1.
0008 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0009 % ver. 1: 11/25/96 (RB)
0010 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0011 global B C
0012 y=x.^2 + B.*x + C;
0013 end
0014

Generated on Thu 01-Dec-2005 07:46:03 by m2html © 2003