Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP Write a Matlab script that creates a plot with six little circles of diameter 2 whose centers are radius units away from the

PLEASE HELP

Write a Matlab script that creates a plot with six little circles of diameter 2 whose centers are radius units away from the origin (point [0, 0]) and in the directions 0, 60, 120, 180, 240, and 300 degrees from the X axis like this image. The little circles have colors red, green, blue, yellow, magenta, and cyan respectively. Name your script bubbles.m and plotted with nump points. The script starts with a header (brief description, name of author and date), assignments to variables nump and radius(120 and 3 are good numbers for this) and then the instructions to create the plots and plot them. Use file paraplot.m for inspiration. Make sure the circles look like circles when plotted and not like ellipses.

Image:

image text in transcribed

paraplot.m :

image text in transcribed

4 3 N 1 0 -1 O OO -2 -3 -4 4 -2 0 2 2 4 phi linspace(0,2*pi, 10); X Cos (phi)*4; Y sin(phi*2); plot(X,Y); delta 25; [X;Y]; R = [cosd (delta), -sind(delta); sind(delta), cosd(delta)]; XY = hold on; XY = R*XY; plot(XY(1, :),XY(2,:)); XY = R*XY; plot(XY(1,:),XY(2,:)); XY = R*XY; plot(XY(1,:),XY(2,:)); XY = R*XY; plot(XY(1,:),XY(2,:)); hold off; daspect([1 1 1]); 4 3 N 1 0 -1 O OO -2 -3 -4 4 -2 0 2 2 4 phi linspace(0,2*pi, 10); X Cos (phi)*4; Y sin(phi*2); plot(X,Y); delta 25; [X;Y]; R = [cosd (delta), -sind(delta); sind(delta), cosd(delta)]; XY = hold on; XY = R*XY; plot(XY(1, :),XY(2,:)); XY = R*XY; plot(XY(1,:),XY(2,:)); XY = R*XY; plot(XY(1,:),XY(2,:)); XY = R*XY; plot(XY(1,:),XY(2,:)); hold off; daspect([1 1 1])

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions

Question

LO1 Summarize the organizations strategic planning process.

Answered: 1 week ago