Project 7 Solutions

# Project 7 Solutions -...

This preview shows pages 1–6. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: -2-1.5-1-0.50.51-1-0.50.511.52PROJECT #7Team Name: The UnknownsMembers:HristianDivyaSofiaAnnon1.>> x=[-2 -.5 -.5 0 .5 1]';y=[0 -1 1 0 2 0]';>> plot(x,y)>> holdCurrent plot held>> [xb,yb]=bezier(x,y);>> plot(xb,yb)Switching the points assuming that indexing starts at 1.>> x=[-2 -.5 -.5 0 .5 1]';y=[0 1 -1 0 2 0]';>> plot(x,y)>> holdCurrent plot held>> [xb,yb]=bezier(x,y);-2-1.5-1-0.50.51-1-0.50.511.52>> plot(xb,yb)2.>> t=pi/6;>> r=[cos(t),-sin(t);sin(t),cos(t)];>> z=r*[xb;yb];>> xr=z(1,:);yr=z(2,:);plot(xr,yr)-2-1.5-1-0.50.51-1-0.8-0.6-0.4-0.20.20.40.60.813.>> B=bern(3);>> poly1=B(:,1);poly2=B(:,2);poly3=B(:,3);poly4=B(:,4);>> x=0:.01:1;>> y1=polyval(poly1,x);>> y2=polyval(poly2,x);>> y3=polyval(poly3,x);>> y4=polyval(poly4,x);>> plot(x,y1,x,y2,x,y3,x,y4)0.10.20.30.40.50.60.70.80.910.10.20.30.40.50.60.70.80.914.>> t=0:pi/20:pi/2;>> xcirc=cos(t);ycirc=sin(t);plot(xcirc,ycirc)>> holdCurrent plot held>> s=(cos(pi/4)-4*.5^3)/(3*.53);>> x=[1 1 s 0];y=[0 s 1 1];>> [xb,yb]=bezier(x',y');>> plot(xb,yb)0.10....
View Full Document

{[ snackBarMessage ]}

### Page1 / 11

Project 7 Solutions -...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online