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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started