Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!