Wisdom Materials
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us
MatLab Manual
/ Matlab graph with sin and cos functions Program
Program Name
Write a Matlab Program for Matlab graph with sin and cos functions Program.
Theory
Using plot function we plot the graphs in matlab.
Program Code
Copy Program Code
x = linspace(-2*pi,2*pi); y1 = sin(x); y2 = cos(x); plot(x,y1,x,y2)
Input and Output:
Output:
Click for Matlab Online Compiler (Copy, Paste and Press Enter)
Home
Back