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

Matlab Viva Flashcards

The document contains flashcards for MATLAB concepts related to differential equations, interpolation, numerical integration, and root-finding methods. Key topics include symbolic and numeric solvers, initial conditions, homogeneous and non-homogeneous ODEs, interpolation techniques, and methods like Runge-Kutta and Newton-Raphson. Each experiment provides questions and answers to facilitate understanding of MATLAB functions and their applications.

Uploaded by

karanthvishnu1
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)
5 views3 pages

Matlab Viva Flashcards

The document contains flashcards for MATLAB concepts related to differential equations, interpolation, numerical integration, and root-finding methods. Key topics include symbolic and numeric solvers, initial conditions, homogeneous and non-homogeneous ODEs, interpolation techniques, and methods like Runge-Kutta and Newton-Raphson. Each experiment provides questions and answers to facilitate understanding of MATLAB functions and their applications.

Uploaded by

karanthvishnu1
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 Viva Flashcards (BMATCS21)

Experiment 1: First-order Differential Equation Q: What does dsolve do in MATLAB?


A: It symbolically solves differential equations.

Q: How do you represent dy/dx = y in MATLAB?


A: diff(y,x) == y

Q: Difference between symbolic and numeric solvers?


A: Symbolic solvers give exact solutions, numeric give approximations.

Q: Function used for plotting?


A: plot or fplot

Experiment 2: Differential Equations with Initial Conditions Q: How to specify initial conditions in
dsolve ?
A: As a vector like [y(0)==1, Dy(0)==0]

Q: Purpose of syms ?
A: Declares symbolic variables.

Q: What does diff(y,t,2) mean?


A: Second derivative of y with respect to t.

Q: Why use simplify ?


A: To make the output expression cleaner.

Experiment 3: Homogeneous ODEs Q: What is a homogeneous differential equation?


A: All terms contain the function or its derivatives.

Q: General form of 2nd-order homogeneous DE?


A: a(x)y'' + b(x)y' + c(x)y = 0

Q: How to solve higher-order ODEs in MATLAB?


A: Use dsolve with diff and conditions.

Q: What does simplify(Sol) do?


A: Simplifies symbolic output.

1
Experiment 4: Non-homogeneous ODEs Q: What is a non-homogeneous DE?
A: Has a non-zero term independent of y or its derivatives.

Q: Example of non-homogeneous term?


A: x*sin(x)

Q: MATLAB function used?


A: dsolve

Q: Why simplify the result?


A: For easier interpretation.

Experiment 5: Newton's Interpolation Q: When to use forward interpolation?


A: When value lies near start of data.

Q: When to use backward interpolation?


A: When value lies near end of data.

Q: Role of F matrix?
A: Stores difference table.

Q: What is p = (X - x(1))/h ?
A: Interpolation parameter.

Experiment 6: Numerical Integration Q: Trapezoidal rule formula?


A: h/2 [f(x0) + 2f(x1)+...+f(xn)]

Q: Simpson's rule is used for?


A: Approximate integration using parabolas.

Q: What does trapz(x,y) do?


A: Computes trapezoidal integral.

Q: Condition for Simpson's rule?


A: n must be even.

Experiment 7: Modified Euler’s Method Q: Used for what problems?


A: First-order initial value problems.

Q: What is the idea?


A: Use midpoint slope to refine steps.

2
Q: Why multiple modifications?
A: To increase accuracy.

Q: What is step size h ?


A: Increment in x.

Experiment 8: Runge-Kutta 4th Order Q: What type of equations?


A: First-order ODEs.

Q: What are k1, k2, k3, k4?


A: Slopes at different points.

Q: Formula to update y?
A: y = y + (1/6)(k1+2k2+2k3+k4)

Q: Why RK4 is accurate?


A: Evaluates slopes at multiple points.

Experiment 9: Regula-Falsi Method Q: Used for what equations?


A: Algebraic/transcendental equations.

Q: Main formula?
A: c = (af(b)-bf(a))/(f(b)-f(a))

Q: Stopping criterion?
A: |f(c)| < tolerance.

Q: Drawback?
A: May converge slowly.

Experiment 10: Newton-Raphson Method Q: Main formula?


A: x1 = x0 - f(x0)/f'(x0)

Q: Function requirement?
A: Must be differentiable.

Q: When might it fail?


A: If f'(x) = 0 or poor guess.

Q: Why is it fast?
A: Quadratic convergence.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy