Question

1. Plotting a target sign Make a new script called CTask1p1.m to draw a simple target sign, as shown below. You may use sin()

1 0
Add a comment Improve this question Transcribed image text
Answer #1

SOLUTION:-

BY USING MAT LAB CODE:-

tutorialspoint GNU Octave 3.6.4 Execute main.m 1 clc 2 clear all 3 th-0:0.01:2 pi+1; 4 x-13cos (th) 5 y-1 sin(th); 6 plot(x,y

OUTPUT SCREEN SHOTS:-

Result Executing the program.... Soctave -qf--no-window-system main.m x *8 x *8 0.5

0.5 -0.5 -0.5 0.5S0- ssst S0- く-+ く-+

0.5 -0.5 -0.5 0.5

ㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑㄑくくくく

0.5 0 0.5 -2 1.5 0.5 0.5 1.5

1.5 -t 1 -t 0.5 -+ 1.5 -+ 1.5 2

1.5 0.5 0.5 -2 .2 1.5 0.5 0.5 1.5

COPY CODE;-

MATLAB CODE

clc
clear all
th=0:0.01:2*pi+1;
x=1*cos(th);
y=1*sin(th);
plot(x,y,'LineWidth',24,'Color','blue');
hold on;
x=0.1*cos(th);
y=0.1*sin(th);
plot(x,y,'LineWidth',40,'Color','red');
hold on;
plot(linspace(-2,2,100),linspace(0,0,100),'--c');
hold on;
plot(linspace(0,0,100),linspace(-2,2,100),'--c');
hold off;
axis equal
ylim([-2,2])

Add a comment
Know the answer?
Add Answer to:
1. Plotting a target sign Make a new script called CTask1p1.m to draw a simple target sign, as shown below. You may use sin(), cos() and line() functions, but not viscircles() function. You may use p...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT