SlideShare a Scribd company logo
UNPRG
JOSÉ LUIS FARRO QUESQUÉN
PRACTICA DE MATLAB
1. Resolver:
2 6 5 4
6 7 8
6 3 7 9
x y z
x y z
x y z
  
  
  
Solución
>> A=[2 -6 5;6 -7 1;6 -3 7];
>> b=[4;8;9];
>> X=inv(A)*b
X =
1.2008
-0.0820
0.2213
2. Derivar y hallar sus gráficas
4 3
4 6 3 6y x x x   
Solución
>> x=0:0.5:10;
>> y=4*x.^4 +6*x.^3 - 3*x +6;
>> dy=16*x.^3 + 18*x.^2 -3;
>> ddy=48*x.^2+18;
>> dddy=96*x;
>> plot(x,y,'r',x,dy,'k',x,ddy,'g',x,dddy,'b')
>> grid on
>> title('La función polinómica y sus derivadas')
>> legend('y','dy','ddy','dddy')
>> xlabel('Eje x')
>> ylabel('Eje y')
UNPRG
JOSÉ LUIS FARRO QUESQUÉN
3. Resolver
´ 2
'
' 4 4 5
(0) 1, (0) 2, (0) 3
x x y z
y x z
z x y z
x y z
  
 
  
  
Solución
inic='x(0)=1,y(0)=2,z(0)=3'
[x y z]=dsolve('Dx=x+2*y-z','Dy=x+z','Dz=4*x-4*y+5*z',inic,'t')
% Graficando la solución
t=linspace(0,0.5,25)
xx=eval(vectorize(x))
yy=eval(vectorize(y))
zz=eval(vectorize(z))
plot(t,xx,t,yy,t,zz)
grid
legend('x(t)','y(t)','z(t)')
title('Sistema de ecuaciones diferenciales')
UNPRG
JOSÉ LUIS FARRO QUESQUÉN

More Related Content

PDF
Ejercicios grado, grafica y ceros
PPTX
Integral definida clase2
DOCX
U4 s1 productos notables
PDF
CM 1.0 geometry2 MrG 20110913 - sage
PDF
P10 productos notables solución
PPT
Mathematics does not need translation
PPTX
Integral tak tentu
Ejercicios grado, grafica y ceros
Integral definida clase2
U4 s1 productos notables
CM 1.0 geometry2 MrG 20110913 - sage
P10 productos notables solución
Mathematics does not need translation
Integral tak tentu

What's hot (19)

PDF
MM_201 Limites laterales
PDF
Limiti i Funksionit USHTRIME
PDF
Integrales resueltas 370 371 conamat
PDF
Resolução da l ista iii do ii trimestre de 2017
PDF
Operações com polinômios resolução
PDF
Tugas i
PDF
-6-تمارين الرياضيات للجدع مشترك علوم
PPTX
4 Penyelesaian Grafik Dengan Matlab
DOCX
Solusi ukk mat ips 2015 2016
PPT
Special Products
DOCX
Дээд математик 3 MT103 бодлого
PDF
Kunci Sukino 3A Bab 1
PDF
Sesión de aprendizaje de factorización de polinomios ccesa007
PPTX
Produtos notáveis III
PPT
Integral parsial tanzalin2
PDF
MultiStep Equations and Inequalities - 3Sets.pdf
PDF
Tabela derivadas e integrais
PPTX
Ecuacion de tercer grado
 
PDF
المعادلات المتراجحات-النظمات
MM_201 Limites laterales
Limiti i Funksionit USHTRIME
Integrales resueltas 370 371 conamat
Resolução da l ista iii do ii trimestre de 2017
Operações com polinômios resolução
Tugas i
-6-تمارين الرياضيات للجدع مشترك علوم
4 Penyelesaian Grafik Dengan Matlab
Solusi ukk mat ips 2015 2016
Special Products
Дээд математик 3 MT103 бодлого
Kunci Sukino 3A Bab 1
Sesión de aprendizaje de factorización de polinomios ccesa007
Produtos notáveis III
Integral parsial tanzalin2
MultiStep Equations and Inequalities - 3Sets.pdf
Tabela derivadas e integrais
Ecuacion de tercer grado
 
المعادلات المتراجحات-النظمات
Ad

More from José Luis Farro (9)

PDF
EXAMENES SOBRE MATRICES.pdf
PDF
Guia-Normas-APA-7ma-edicion.pdf
PDF
Expresiones verbales equivalentes
PDF
Instructivo classroom
DOCX
Plan de seguridad
PDF
Grupo de homología
PDF
Manual examen
PDF
ÁLgebra 1
PDF
Propiedades
EXAMENES SOBRE MATRICES.pdf
Guia-Normas-APA-7ma-edicion.pdf
Expresiones verbales equivalentes
Instructivo classroom
Plan de seguridad
Grupo de homología
Manual examen
ÁLgebra 1
Propiedades
Ad

Recently uploaded (7)

PPTX
science grade 7 quiz_Scientific Method.pptx
PDF
ಶ್ರೀ ಕ್ಷೇತ್ರ ಚಂಪಕಧಾಮ ಸ್ವಾಮಿ ದೇವಾಲಯSri Kshetra Champakadham Swamy Temple
PDF
فێرکردن و فێربوونی مۆدێرن.pdf دەروازەیەک بۆ
PPTX
Coklat Beige Ilustrasi 3 Dimensi Tugas Kelompok Presentasi.pptx
PPTX
Tahfidz Qur’an TIMING tampa musik bagian 2.pptx
PDF
"ಶ್ರೀ ಕ್ಷೇತ್ರ ಚಂಪಕಧಾಮ ಸ್ವಾಮಿ ದೇವಾಲಯ""Sri Kshetra Champakadham Swamy Temple"
PPTX
Slide Ibadah siang 29 mei 2025 jika .pptx
science grade 7 quiz_Scientific Method.pptx
ಶ್ರೀ ಕ್ಷೇತ್ರ ಚಂಪಕಧಾಮ ಸ್ವಾಮಿ ದೇವಾಲಯSri Kshetra Champakadham Swamy Temple
فێرکردن و فێربوونی مۆدێرن.pdf دەروازەیەک بۆ
Coklat Beige Ilustrasi 3 Dimensi Tugas Kelompok Presentasi.pptx
Tahfidz Qur’an TIMING tampa musik bagian 2.pptx
"ಶ್ರೀ ಕ್ಷೇತ್ರ ಚಂಪಕಧಾಮ ಸ್ವಾಮಿ ದೇವಾಲಯ""Sri Kshetra Champakadham Swamy Temple"
Slide Ibadah siang 29 mei 2025 jika .pptx

Practica de matlab

  • 1. UNPRG JOSÉ LUIS FARRO QUESQUÉN PRACTICA DE MATLAB 1. Resolver: 2 6 5 4 6 7 8 6 3 7 9 x y z x y z x y z          Solución >> A=[2 -6 5;6 -7 1;6 -3 7]; >> b=[4;8;9]; >> X=inv(A)*b X = 1.2008 -0.0820 0.2213 2. Derivar y hallar sus gráficas 4 3 4 6 3 6y x x x    Solución >> x=0:0.5:10; >> y=4*x.^4 +6*x.^3 - 3*x +6; >> dy=16*x.^3 + 18*x.^2 -3; >> ddy=48*x.^2+18; >> dddy=96*x; >> plot(x,y,'r',x,dy,'k',x,ddy,'g',x,dddy,'b') >> grid on >> title('La función polinómica y sus derivadas') >> legend('y','dy','ddy','dddy') >> xlabel('Eje x') >> ylabel('Eje y')
  • 2. UNPRG JOSÉ LUIS FARRO QUESQUÉN 3. Resolver ´ 2 ' ' 4 4 5 (0) 1, (0) 2, (0) 3 x x y z y x z z x y z x y z            Solución inic='x(0)=1,y(0)=2,z(0)=3' [x y z]=dsolve('Dx=x+2*y-z','Dy=x+z','Dz=4*x-4*y+5*z',inic,'t') % Graficando la solución t=linspace(0,0.5,25) xx=eval(vectorize(x)) yy=eval(vectorize(y)) zz=eval(vectorize(z)) plot(t,xx,t,yy,t,zz) grid legend('x(t)','y(t)','z(t)') title('Sistema de ecuaciones diferenciales')