Home > Source > Tests > ellipse.m

ellipse

PURPOSE ^

counter=1;

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 counter=1;
 for i=-1:0.01:1,
   image(counter) = sqrt ( 0.20 - i.^2);
   counter = counter + 1;
 end

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % counter=1;
0002 % for i=-1:0.01:1,
0003 %   image(counter) = sqrt ( 0.20 - i.^2);
0004 %   counter = counter + 1;
0005 % end
0006 
0007 clear;
0008 e = rand;
0009 
0010 width = 50 / 3;
0011 
0012 for x=1:width,
0013 y(x) = e * sqrt(width.^2 - x.^2);
0014 end
0015 
0016 plot(y)

Generated on Fri 14-May-2004 10:05:30 by m2html © 2003