0% found this document useful (0 votes)
4 views

Nguyễn Hoàng Anh

Uploaded by

hoanganh280806
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Nguyễn Hoàng Anh

Uploaded by

hoanganh280806
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

>> x=-5:0.

1:5;
y=sqrt(25-x.^2)+20;
plot(x,y,'g','linewidth',2);
axis([-5 5 20 25]);
axis equal;
xlabel('X-axis');
ylabel('Y-axis');
grid on;
hold on;
y=-20:0.1:20;
x=5+0.*y;
plot(x,y,'g','linewidth',2);
hold on;
y=-20:0.1:20;
x=-5+0.*y;
plot(x,y,'g','linewidth',2);
>> x=-5:0.1:5;
>> y=-(sqrt(25-x.^2)+20);
>> plot(x,y,'g','linewidth',2);
>> hold on
>> x=-10:0.1:10;
>> y=sqrt(100-x.^2)+20;
>> plot(x,y,'b','linewidth',2);
>> axis([-10 10 20 30]);
>> axis equal;
>> xlabel('X-axis');
>> ylabel('Y-axis');
>> grid on;
>> hold on;
>> axis([-40 40 -30 30]);
>> y=-20:0.1:20;
>> x=10+0.*y;
>> plot(x,y,'b','linewidth',2);
>> grid on;
hold on;
>> y=-20:0.1:20;
>> x=-10+0.*y;
>> plot(x,y,'b','linewidth',2);
>> grid on;
>> hold on;
>> x=-10:0.1:10;
>> y=-(sqrt(100-x.^2)+20);
>> plot(x,y,'b','linewidth',2);
>> grid on;
>> hold on;
>> x=-15:0.1:15;
>> y=sqrt(225-x.^2)+20;
>> plot(x,y,'r','linewidth',2);
>> axis([-45 45 -35 35]);
>> grid on;
>> hold on;
>> y=-20:0.1:20;
>> x=15+0.*y;
>> plot(x,y,'r','linewidth',2);
>> grid on;
>> hold on;
>> y=-20:0.1:20;
>> x=-15+0.*y;
>> plot(x,y,'r','linewidth',2);
>> grid on;
>> hold on;
>> x=-15:0.1:15;
>> y=-(sqrt(225-x.^2)+20);
>> plot(x,y,'r','linewidth',2);
>> grid on;
>> hold on;
>> title('Oval Track Racing')

You might also like