Wisdom Materials
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us
MatLab Manual
/ Matlab 2D graph Program
Program Name
Write a Matlab Program for 2D graph.
Theory
Using plot function we plot the graphs in matlab.
Program Code
Copy Program Code
x = linspace(0,10,150); y = cos(5*x); plot(x,y,'Color',[0,0.7,0.9]) title('2-D Line Plot') xlabel('x') ylabel('cos(5x)')
Input and Output:
Output:
Click for Matlab Online Compiler (Copy, Paste and Press Enter)
Home
Back