10 t = 0:.01:40*pi; 11 12 f = [e.^cos (t) - (2*cos (4*t))- ((sin (t/12)).^5)]; 13 Qfor s=0.1 14 E 15 E for x0=1 for y0=1 x= x0+s.*f.*sin(t); y= y0+s.*f.*cos (t); 17 18 Fend 19 Fend 20 Lend 21 plot(x,y,'m-') 22 hold on 23 24 Qfor s=0.2 25 E for x0=3 26 E for y0=3 27 x=x0+s.*f.*sin(t); 28 y=y0+s.*f.*cos (t); 29 end 30 end 31 end 32 plot (x,y,'b-') 33 670O

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Can you change the code a little but the code must  work the same

and then can you add commend to each line

10
t = 0:.01:40*pi;
11
12 f = [e.^cos (t) - (2*cos (4*t))- ((sin(t/12)).^5)];
13 Efor s=0.1
14 E
15 E
for x0=1
for y0=1
x= x0+s.*f.*sin(t);
y= y0+s.*f.*cos (t);
16
17
18 Fend
19 Fend
20 Lend
21 plot (x, y, 'm-')
22 hold on
23
24 Qfor s=0.2
25 E for x0=3
for y0=3
x=x0+s. *f.*sin (t);
y=y0+s.*f.*cos (t);
27
28
29
end
30
end
31
end
32 plot (x, y, 'b-')
33
34
N N N NNM3
Transcribed Image Text:10 t = 0:.01:40*pi; 11 12 f = [e.^cos (t) - (2*cos (4*t))- ((sin(t/12)).^5)]; 13 Efor s=0.1 14 E 15 E for x0=1 for y0=1 x= x0+s.*f.*sin(t); y= y0+s.*f.*cos (t); 16 17 18 Fend 19 Fend 20 Lend 21 plot (x, y, 'm-') 22 hold on 23 24 Qfor s=0.2 25 E for x0=3 for y0=3 x=x0+s. *f.*sin (t); y=y0+s.*f.*cos (t); 27 28 29 end 30 end 31 end 32 plot (x, y, 'b-') 33 34 N N N NNM3
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY