18bme0095_vl2018195000637_ast07.pdf

  • Uploaded by: Karun Kumar DK
  • 0
  • 0
  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View 18bme0095_vl2018195000637_ast07.pdf as PDF for free.

More details

  • Words: 71
  • Pages: 1
EXPERIMENT:4-A Solution of homogeneous system of first order and second order differential equations by Matrix method.

MATLAB CODE: clc clear syms t C1 C2 A=input('Enter A: '); [P,D]=eig(A); L1=D(1);L2=D(4); y1=C1*exp(L1*t);y2=C2*exp(L2*t); Y=[y1;y2]; X=P*Y; Cond=input('Enter the initial conditions [t0, x10,x20]: '); t0=Cond(1);x10=Cond(2);x20=Cond(3); eq1=subs(X(1)-x10,t0);eq2=subs(X(2)-x20,t0); [C1, C2] = solve(eq1,eq2); X=subs(X);

INPUT: Enter A: [1 2;0.5 1] Enter the initial conditions [t0, x10,x20]: [0 16 -2] >> X

X=

6*exp(2*t) + 10 3*exp(2*t) - 5

>>

More Documents from "Karun Kumar DK"

Spss Basics
December 2019 18
My Marriage Invitation.pdf
October 2019 29
Use Of Rdw Sd In B Thal
October 2019 19
Modi Ke Char Saal.pdf
October 2019 18