Write a matlab code to plot the following functions in one plot! f:(t) = sin(x) %3D f2(t) = sin(x-") fa(t) = sin(x+") %3D note that -5s X S 5 and for each function use different color and different line style. Label x-axis with angle values, y-axis with sine value
Write a matlab code to plot the following functions in one plot! f:(t) = sin(x) %3D f2(t) = sin(x-") fa(t) = sin(x+") %3D note that -5s X S 5 and for each function use different color and different line style. Label x-axis with angle values, y-axis with sine value
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
matlab
Expert Solution
Step 1
Algorithm :
Step 1 : create a vector x from -5 to 5.
Step 2 : find sin(x) and store in f1.
Step 3 : find sin(x - pi / 5) and store in f2.
Step 4 : find sin(x + pi / 5) and store in f3.
Step 5 : use subplot to plot the graphs in one plot.
Step 6 : plot x with the sin values and use different colors and line styles.
Step 7 : label the x and y axis.
Step by step
Solved in 4 steps with 2 images
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education