Professional Documents
Culture Documents
Learning MATLAB
Learning MATLAB
com/
: 12 11:15-1390.
(figure(14
(line(1
(uicontrol(1
(uipanel(1
(axes(2
(Organization of Graphics Objects(2
: 7 05:09-1388.
) (symbolic
.
0< t < 1
(uimenu(2
)(7
(image(2
(surface(1
(patch(1
(text(5
(light(1
(plot object(2
(area(3
. 03/09/2014 07:20
1 of 9
http://matlabedu.mihanblog.com/
(bar(2
(convolution(1
(errorbar(2
(plot(1
(surf(1
. an
)(1
)functiony = anfunc(t
(workspace(1
(evalin(1
(GUIDE(1
(dsolve(1
)(1
;)y = 2*sin(2*pi*t).*sin(2*n*pi*t
n
. anfunc n 2 )
ParameterizingFunctions Called by Function Functions
( . ) (nested function .
functionmyfunc
)(3
(IVP(2
forn = 1:10
;)an(n) = quad(@anfunc,0,1
)(1
end
(BVP(1
an
)(1
(solve(1
)function y = anfunc(t
(pde(5
;)y = 2*sin(2*pi*t).*sin(2*n*pi*t
(subs(1
end
end
1390
1388
1386
1386
1385
1385
1385
1385
1385
pde
:
: 1 08:07-1386.
1385
1385
1385
1385
1384
. 03/09/2014 07:20
http://www.mathworks.com/access/helpdesk/help/toolbox
/pde/ug/bqivs1t-1.html
2 of 9
http://matlabedu.mihanblog.com/
1384
1384
1384
pde
) (Geometry Description matrix . decsg
) .(Decomposed Geometry matrix )(domain
.
(
pde
;)'s = tf('s
;sys = 1/(s+1)^2
)nyquist(sys
pde
pde
.
)
(.
;w=-10:.1:10
BVP
;x=(1-w.^2)./(1+w.^2).^2
pdepe
;y=2*w./(1+w.^2).^2
)plot(x,y
IVP
.
w = [linspace(-5,-2,7) linspace(-1.9,-.2,20) -.15:.05:.15...
;]))fliplr(-linspace(-1.9,-.2,20)) fliplr(-linspace(-5,-2,7
;x = (1-w.^2)./(1+w.^2).^2
;y = 2*w./(1+w.^2).^2
;] xy = [0 x ;0 y
;XY = [0 1;-1 0]*xy
x,y w x,y
w
.
Mathworks
. 03/09/2014 07:20
3 of 9
http://matlabedu.mihanblog.com/
MATLAB Wiki
History of Iran
x,y
.
)(74
(n) n
x n y .
.
.
669203 :
x,y
.
5526 :
62:
311 :
13834 :
1 :
74 :
: 12 1393
)(07:10
: 12 1390
. 03/09/2014 07:20
2 . x,y
1 .
;')x = XY(1,:
;')y = XY(2,:
;)n = length(x
;]gd = [2;n;x;y
;)dl = decsg(gd
.
3
. 3 - . -
wgeom .
)'fid=wgeom(dl,'cardiodgeom
- cardiodgeom .
fid -1 .
...
4 of 9
http://matlabedu.mihanblog.com/
: pde
: 9 05:01-1385.
.
.
refinemesh
.
.
-
- .
;)[p,e,t]=initmesh(g
;)[p,e,t]=refinemesh(g,p,e,t
;'
x=p(1,
;'
y=p(2,
;))u0=atan(cos(pi/2*x
;))ut0=3*sin(pi*x).*exp(cos(pi*y
;)tlist=linspace(0,5,50
;)uu=hyperbolic(u0,ut0,tlist,b,p,e,t,1,0,0,1
: pde
: 5 10:01-1385.
pdetool
. 03/09/2014 07:20
5 of 9
http://matlabedu.mihanblog.com/
.
:
hyperbolic
.
)u1=hyperbolic(u0,ut0,tlist,b,p,e,t,c,a,f,d
u0 ut0
tlist
b
p,e,t
c,a,f,d
pdetool pdetool
b,g .
.
;)[p,e,t]=initmesh(g
;')x=p(1,:
;')y=p(2,:
;))u0=atan(cos(pi/2*x
;))ut0=3*sin(pi*x).*exp(cos(pi*y
;)tlist=linspace(0,5,50
;)uu=hyperbolic(u0,ut0,tlist,b,p,e,t,1,0,0,1
for i=1:50
))pdesurf(p,t,uu(:,i
drawnow
end
. 03/09/2014 07:20
6 of 9
http://matlabedu.mihanblog.com/
.
.
: pde
pde
:
: 14 10:01-1385.
pdetoolbox
pde u ) (mesh p,e,t
.
pdemesh .
)pdemesh(p,e,t
)pdemesh(p,e,t,u
)h=pdemesh(p,e,t
)h=pdemesh(p,e,t,u
.
) u(
.
:
)pdemesh(p,e,t
hold on
p x y. p
.
u . p
.
u
;)uu=num2str(u
;)nn=length(u
for i=1:nn
. 03/09/2014 07:20
7 of 9
http://matlabedu.mihanblog.com/
))text(p(1,i),p(2,i),uu(i,:
drawnow
end
plot :
Attempt to execute SCRIPT plot as a function
plot .
: pde
: 8 07:12-1385.
numeric .
numeric
subs
syms x
)y = int(x^2
)subs(y,x,3
)R = subs(S
)R = subs(S,new
)R = subs(S,old,new
.
findsym .
syms x y z
f = z+y+x
)findsym(f
)subs(f,2
. 03/09/2014 07:20
8 of 9
http://matlabedu.mihanblog.com/
.
)'y = dsolve('Dy=y+a
a = 1000
C1 = 2
)subs(y
subs :
pde
: 29 07:12-1385.
.
.
.
http://matlabedu.googlepages.com/heat.pdf
: pde
1 10:
... 7
...
All right reserved2005 Amin Bashi
. 03/09/2014 07:20
9 of 9