rotLineCircle

rotLineCircle - The %angle between all adjacent curves must...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function rotLineCircle(u,v,num) %This function, rotLineCircle, takes in vectors of x and y data and %rotates them about the origin. The data should be rotated 360 degrees; %however, the data should be rotated in n equal steps where n is the %third input. The data should be plotted after each step such that the %end result is a plot that consists of the original data copied n times, %with each copy rotated at a different angle aound the origin.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: The %angle between all adjacent curves must be equal and the rotation should %be performed around the origin in the xy plane (2-D rotation). The %scale used on the x and y axes should be equal to each other. All your %curves should be blue and solid. This function has no outputs, it only %produces a plot (and possibly some mild enjoyment). %usage: rotLineCircle(u,v,num); hold on; for x = 1:num...
View Full Document

Ask a homework question - tutors are online