MATLAB Tutorial: How To Plot A Function Of One Variable
Maybe your like
MATLAB tutorial: how to plot a function of one variable
Math 331, Fall 2016 * Vitor Matveev * Lecture 1
We will make a simple plot of the following function for x in [-6, 6]
f(x) = sin(x^2) / x^2Note that just a couple lines accomplish this task:
L = 6; x = linspace(-L, L, 200); % Create an array of "x" coordinates in [-6, 6] y = sin(x.^2) ./ x.^2; % IMPORTANT: note the periods "." in operations plot(x, y, 'b-'); % Plot with a blue ("b") solid line ("-") xlabel('x'); ylabel('y'); title('This is a simple plot of sin(x^2)/x^2'); axis([-L L -0.5 1.2]); % Optional: specify coordinate window
Published with MATLAB® R2015a
Tag » How To Plot A Function In Matlab
-
Plot Expression Or Function - MATLAB Fplot - MathWorks
-
How To Plot Function Using Matlab? - MathWorks
-
How To Plot A Functions In Matlab - MathWorks
-
Plot Symbolic Expression Or Function - MATLAB Fplot - MathWorks
-
MATLAB - Plotting - Tutorialspoint
-
Matlab Tutorial - 60 - Plotting Functions - YouTube
-
A Complete Guide To MATLAB Plot Function - EduCBA
-
How To Plot A Function In MATLAB: 12 Steps (with Pictures) - WikiHow
-
Matlab Programming - Plot - Utah School Of Computing
-
Plotting X Versus Y - Department Of Mathematics At CSI
-
How Can I Plot A Function With Two Variables In Octave Or Matlab?
-
[PDF] Basics Of Plotting In Matlab - Projects At Harvard
-
MATLAB: Plotting Graphs - Learnonline
-
Fplot (MATLAB Functions)