0% found this document useful (0 votes)
27 views3 pages

Matlab) Plotting in MATLAB (

This document discusses plotting techniques in MATLAB. It describes that MATLAB provides various tools for graphical display of data. There are two basic methods for creating plots: using command lines and functions, or using plotting tools. Some default plot types in MATLAB are linear, bar, histogram for 2D data, and surface, wireframe for 3D data. An example is provided to demonstrate plotting a sine function using the plot command and defining x and y variables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views3 pages

Matlab) Plotting in MATLAB (

This document discusses plotting techniques in MATLAB. It describes that MATLAB provides various tools for graphical display of data. There are two basic methods for creating plots: using command lines and functions, or using plotting tools. Some default plot types in MATLAB are linear, bar, histogram for 2D data, and surface, wireframe for 3D data. An example is provided to demonstrate plotting a sine function using the plot command and defining x and y variables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

MATLAB

)(Plotting in MATLAB


MATLAB .

.

.

MATLAB
.
:
-

- )(Plotting Tools
... .

. .


:
;x = 0:pi/100:2*pi
;)y = sin(x
)plot(x,y

- x x
p
. ] x [0, 2
100

- .

- y x .
- x-y .

)'xlabel('x = 0:2\pi
)'ylabel('Sine of x
)title('Plot of the Sine Function','FontSize',12

- x y ' .
- .

:
;x = 0:pi/100:2*pi
;)y = sin(x
;)y2 = sin(x-.25
;)y3 = sin(x-.5
)plot(x,y,x,y2,x,y3

y x . plot y
x .
mesh surface :
;)[X,Y] = meshgrid(-8:.5:8
;R = sqrt(X.^2 + Y.^2) + eps
;Z = sin(R)./R
)'mesh(X,Y,Z,'EdgeColor','black

- .

- ) z = f (x,y .

- mesh .

. .
View Show Plot Tools plottools .
Plot Browser Figure Palette Property Editor

.

plotbrowser figurepalette

propertyeditor

:
-

- mesh plot surface Plottools


Variabels
.

You might also like