How do you graph functions with MATLAB?

Matlabsolutions provide latest MatLab Homework Help, MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.
Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Here is an example for the sinus function:
  1. x = linspace(0,2*pi,100);
  2. y = sin(x);
  3. figure; plot(x, y);
The first line means that x is a vector of 100 values between 0 and 2 pi
plot will give you the following graph :

Comments

Popular posts from this blog

I already have MinGW on my computer. How do I configure it to work with MATLAB?

When taking the Fourier Transform of a sum of two different frequencies, why doesn't a peak appear that corresponds to the beating frequency of the signal?

What are some project ideas on image processing in the industrial field?