1 / 7100%
LAB 1 - - MAT 275
Exercise 1
Define input variable theta as discretized row vector (i.e. array)
theta =[0,pi/9,pi/7,pi/6,7*pi/6,8*pi/7,9*pi/8];
Define radius
r=5;
Define x and y in terms of theta and r
x=r*cos(theta);
y=r*sin(theta);
Check that x and y satisfy the equation of a circle
radius=sqrt(x.^2+y.^2)
radius =
5.0000 5.0000 5.0000 5.0000 5.0000 5.0000 5.0000
X and y satisfy the equation of a circle because and the the output on the radius vector
are all equals to r.
Exercise 2
Define t-vector
t=(6:0.3:30);
Students also viewed