figureFormat

figureFormat - function figureFormat(vec,str) %Given a...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
function figureFormat(vec,str) %Given a vector containing three resolutions and a string that specifies %the type of resultant figure write a function figureFormat that %produces a figure with three different curves of one period of a sine %wave (amplitude equal to 1) with the following specifications: % - A period of a sine wave goes from 0 to 2*pi. The amount of points % in between those two numbers is specified by each value of the % resolutions vector. % - If the second input is the string 'single', the three % curves should be done on the same plot and a legend must be % included. The color of the curves must be red, blue and green in % that order and they must be solid. The legend will specify the % amount of points used to plot the curve as text. Please see test % cases for clarification about the way the legend must look. % - If the figure format input is the string 'separate', the three % curves should be done in three different plots (same figure), one % below the other (3 rows 1 column), the color of the curves must be
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

figureFormat - function figureFormat(vec,str) %Given a...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online