Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Basics of plotting trig-functions Compare figure(1) with figure(2) and figure(3). a) What are differences between figure (1) and figure (2) b) What are differences between

Basics of plotting trig-functions

Compare figure(1) with figure(2) and figure(3).

a) What are differences between figure (1) and figure (2)

b) What are differences between figure (1) and figure (3)

%trigonometry (m file )

%Define values for variables alpha1...alpha3 and plot diagrams of functions

alpha1=linspace(0,2*pi);alpha2=linspace(0,4*pi);alpha3=linspace(0,8*pi);

%define functions for figure(1)

x=cos(alpha1);y=sin(alpha1);

figure(1)

subplot(2,1,1)

plot(x,y)

axis square

grid on

subplot(2,1,2)

plot(alpha1,y)

title('y=sin(x)')

grid on

%define functions for figure(2)

x=cos(alpha2);y=sin(alpha2);

figure(2)

subplot(2,1,1)

plot(x,y)

axis square

grid on

subplot(2,1,2)

plot(alpha2,y)

title('y=sin(x)')

grid on

%define functions for figure(3)

x=cos(alpha3);y=sin(alpha3);

figure(3)

subplot(2,1,1)

plot(x,y)

axis square

grid on

subplot(2,1,2)

plot(alpha3,y)

title('y=sin(x)')

grid on

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

Learn To Program Databases With Visual Basic 6

Authors: John Smiley

1st Edition

1902745035, 978-1902745039

More Books

Students also viewed these Databases questions