Matlab pas à pas en arabe
80 pages
Français

Matlab pas à pas en arabe

-

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
80 pages
Français
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

MATLAB . -: . -: . -: ( , , ) -: , , ) -: , , ( Ahmad_Engineer21@yahoo.com -: -: . . . . 2011 2010 -: . -: . -: Ahmad_engineer21@yahoo.com . , , ... . . . . . . . ...................... ............................ .............................. ......................... ........................ ................... ................. ..................... ........................ ................ Ahmad_engineer21@yahoo.com . -1 %--------------------------------- clc clear a=4; b=5; c=7; d=a+b+c % clc clear a=[2 3 4 6 7 8 9 10]; sum(a) %---------------------------------- -2 %--------------------------------- clc clear a=4; b=5; c=7; d=a-b-c %--------------------------------- -3 % clc clear a=4; b=5; c=7; d=a*b*c %--------------------------------- clc clear a=4; b=5; c=7; d=conv(a,b) %or d=conv(a,conv(b,c)) f=conv(d,c) %---------------------------------- s=[4 5 7]; prod(s) %------------------------- -4 %--------------------------------- clc clear a=4; b=5; c=7; d=a/b f=d/c %--------------------------------- Ahmad_engineer21@yahoo.com .

Informations

Publié par
Publié le 18 juillet 2013
Nombre de lectures 1 297
Langue Français
Poids de l'ouvrage 2 Mo

Extrait

.
.
,
Ahmad_engineer21@yahoo.com
MATLAB
(
,
,
.
,
.
(
,
.
)-:
Ahmad_Engineer21@yahoo.com-:
.
.
.
2011
-:
2010-:
-:
-:
)-:
,
-:
.
-:
-:
.
,
. .
Ahmad_engineer21@yahoo.com
.
,
.
...................... ............................ .............................. ......................... ........................
.................................... ..................... ........................ ................
...
.
.
.
.
%---------------------------------clccleara=4;b=5;c=7;d=a+b+c%---------------------------------clccleara=[2 3 4 6 7 8 9 10];sum(a)%----------------------------------
%---------------------------------clccleara=4;b=5;c=7;d=a-b-c %---------------------------------
%---------------------------------clccleara=4;b=5;c=7;d=a*b*c%---------------------------------clccleara=4;b=5;c=7;d=conv(a,b)%or d=conv(a,conv(b,c))f=conv(d,c)%----------------------------------s=[4 5 7];prod(s)%-------------------------
%---------------------------------clccleara=4;b=5;c=7;d=a/bf=d/c%---------------------------------
Ahmad_engineer21@yahoo.com
-1
-2
-3
-4
.
clccleara=4;b=5;c=7;d=deconv(a,b)d=deconv(deconv(a,b),c) %or f=deconv(d,c)%----------------------------------
-5
((5*log10(x)+2*x^2*sin(x)+sqrt(x)*lin(x))f=----------------------------------------- (exp(6*x^3)+3*x^4+sin(lin(x)))
%---------------------------------clcclearx=1;f=deconv((5*log10(x)+2*x^2*sin(x)+sqrt(x)*log(x)),(exp(6*x^3)+3*x^4+s in(log(x))))%---------------------------------clcclearx=1;f=(5*log10(x)+2*x^2*sin(x)+sqrt(x)*log(x))/(exp(6*x^3)+3*x^4+sin(log (x)))%-----------------------------------6 %---------------------------------clcclearsymsxf=((x^5)+(5*x^4)+(4*x^3)-(2*x^2)-(8*x)+9)d=diff(f,x)%---------------------------clcclearsymsxf=((x^5)+(5*x^4)+(4*x^3)-(2*x^2)-(8*x)+9)d=diff(f,2)%------------------------------%---------------------------------clcclearsymsxf=(1/(1+x^2))d=diff(f,x)%---------------------------
%---------------------------------clcclearsymsxf=(1/(1+x^2))
Ahmad_engineer21@yahoo.com
-7
.
d=int(f,x)%---------------------------clcclearsymsxf=((x^5)+(5*x^4)+(4*x^3)-(2*x^2)-(8*x)+9)d=int(f,x)%------------------------------%---------------------------clcclearsymsxf=((x^5)+(5*x^4)+(4*x^3)-(2*x^2)-(8*x)+9)d=int(f,1,2)%------------------------------%---------------------------clcclear symsxabf=((x^5)+(5*x^4)+(4*x^3)-(2*x^2)-(8*x)+9)d=int(f,a,b)%------------------------------
Ahmad_engineer21@yahoo.com
-8
.
%---------------------------------clcclearsymsxty=dsolve('D2y+4*Dy+3*y=3*exp(-2*t)','y(0)=1','Dy(0)=-1') ezplot(y,[0 4])%pretty(y)%-----------------------------------
%-----------------------------------clcsymsk3k4f1=19*k3+25*k4;f2=25*k3-19*k4-4;[k3 k4]=solve(f1,f2 )%--------------------------------clcsymsr1r2r3f1=r1+r2-1;f2=0.683*r1+3.817*r2+r3-2;
Ahmad_engineer21@yahoo.com
-9
.
f3=0.393*r1 + 3.817*r3+1[r1 r2 r3]=solve(f1,f2,f3)%------------------------------------------
Solution%--------------------------------clcsymsxyzalphax^2*y^2+z=0x-(y/2)-alpha+z=0x+z+y=0[x,y,z]=solve('x^2*y^2+z','x-(y/2)-alpha+z','x+z+y') %----------------------------------
%-----------------------------------clcp1=[1-10 35-50 24];f1=roots(p1)%-----------------------------------p2=[1-7 0 16 25 52];f2=roots(p2)%----------------------------------
%--------------------------------clcr1=[1 2 3 4];f1=poly(r1)r2=[-1-2-3-4+5j-4-5j ];f2=poly(r2)%----------------------------------
Ahmad_engineer21@yahoo.com
-10
.
%--------------------------------clcp1=[1-3 0 5-4 3 2];f1=polyval(p1,-3)%----------------------------------
%--------------------------------clcp1=[1 0-3 0 5 7 9];p2=[2-8 0 0 4 10 12];f1=conv(p1,p2)[q,r]=deconv(p1,p2)%----------------------------------
Ahmad_engineer21@yahoo.com
.
%--------------------------------clcclearp5=[2 0-8 0 4 10 12];f1=polyder(p5)f2=polyint(p5)%----------------------------------
%--------------------------------clcclearsymsxpnum=collect((x^2-4.8372*x+6.9971)*(x^2+0.6740*x+1.1058)*(x+1.1633))pden=collect((x^23.3520*x+3.0512)*(x^2+0.4216*x+1.0186)*(x+1.0000)*(x +1.9304))R=pnum/pdenpretty(R)%----------------------------------
Example 7
finds the residues, poles and direct term ofa partial fraction expansion of the ratio of two polynomials B(s)/A(s).If there are no multiple roots,  B(s) R(1) R(2) R(n)---- =--------+--------+ ... +--------+ K(s) A(s) s-P(1) s-P(2) s-P(n)[R,P,K] = residue (B,A)bx^4 2x^3 4x^2 5x1 a x^5 4x^4 2x^3 6x^2 2x1 solution%--------------------------------clcb=[1 2-4 5 1];a=[1 4-2 6 2 1];[R,P,K] = residue(b,a)%----------------------------------
Ahmad_engineer21@yahoo.com
.
R = 0.2873 ,-0.0973 + 0.1767i,-0.0973-+ 0.0022i0.1767i, 0.4536 , 0.4536-0.0022iP =-+ 1.0799i, 0.52764.6832, 0.5276 -1.0799i,-0.1860 + 0.3365i,-0.1860-0.3365iK =0 -11
%--------------------------------clccleart=0: 0.01: 5% Define t-axis in 0.01 incrementsy=3.* exp(-4.* t).* cos(5 .* t)-2.* exp(-3.* t).* sin(2.* t) + t.^2./ (t+1)plot(t,y);grid;xlabel('t');ylabel('y=f(t)');title('Plot for Example A.13') %----------------------------------
%--------------------------------clcclearx=linspace(0,2*pi,100);% Interval with 100 data pointsy=(sin(x).^ 2);z=(cos(x).^ 2);w=y.* z;v=y./ (z+eps);% add eps to avoid division by zeroplot(x,y,'b',x,z,'g',x,w,'r',x,v,'y');gridonaxis([0 10 0 5]);%-----------------------------------------------------------------
Ahmad_engineer21@yahoo.com
.
%-----------------------------------------------------------------clcclearx=linspace(0,2*pi,100);% Interval with 100 data pointsy=(sin(x).^ 2);z=(cos(x).^ 2);w=y.* z;v=y./ (z+eps);subplot(221);% upper left of four subplotsplot(x,y);axis([0 2*pi 0 1]);title('y=(sinx)^2');gridonsubplot(222);% upper right of four subplotsplot(x,z);axis([0 2*pi 0 1]);title('z=(cosx)^2');gridonsubplot(223);% lower left of four subplotsplot(x,w);axis([0 2*pi 0 0.3]);title('w=(sinx)^2*(cosx)^2');gridonsubplot(224);% lower right of four subplotsplot(x,v);axis([0 2*pi 0 400]);title('v=(sinx)^2/(cosx)^2');gridon%----------------------------------
Ahmad_engineer21@yahoo.com
.
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents