plot(abs(fft(vectorname)))the FFT function returns a complex vector thus when you plot it, you get a complex graph. If you plot the absolute value of the FFT array, you will get the magnitude of the FFT.
To plot a Probability Density Function (PDF) in MATLAB, you can use the "histogram" function with the 'Normalization' parameter set to 'pdf'. This will create a plot that represents the PDF of your data.
To plot each value of a vector as a dirac impulse, try stem instead of plot.
Since complex numbers can be expressed as magnitude and angle, a plot of a system's response can be approximated with a Bode plot (see related link). The gain is the magnitude, and the phase shift is the angle change of the system.
stem(x) will plot a graph in discreet form
stem(x) will plot a graph in discreet form
Initially, the equation can be directly realized using Matlab source code. Then various inputs can be applied to it. These values can easily be plotted on a graph using plot or stem command in Matlab.
MATLAB is a software program that helps people with doing math. More specifically, it helps people with visualization, programming, and computation. MATLAB plotting should be done in plot edit mode.
imhist(x); where 'x' is your data or image to find histogram.
y^2=x^3-x+6
after you plot, type axis([xmin xmax ymin ymax]) and that should do it.
it is a path in which magnitude and phase can be determine . it is used to determine the