โ† All MATLAB Flashcard Decks

MATLAB Numerical Methods and Optimization Flashcards

6 cards from real MATLAB practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 6 MATLAB Numerical Methods and Optimization flashcards as text
  1. Which MATLAB function solves a system of linear equations Ax = b?

    Answer: linsolve(A, b) or A\b

    MATLAB solves linear systems using the backslash operator A\b or the linsolve function.

  2. What does the MATLAB function `fzero` do?

    Answer: Finds a root of a nonlinear scalar function

    fzero finds a zero (root) of a scalar nonlinear function near a specified starting point.

  3. Which function in MATLAB computes numerical integration using adaptive quadrature?

    Answer: integral

    The integral function uses adaptive Gauss-Kronrod quadrature to numerically integrate a function over a specified interval.

  4. What does the `ode45` function use to solve differential equations?

    Answer: Runge-Kutta 4th/5th order method

    ode45 implements a variable-step Runge-Kutta method of orders 4 and 5 for solving ODEs.

  5. Which MATLAB function finds the minimum of an unconstrained multivariable function?

    Answer: fminsearch

    fminsearch uses the Nelder-Mead simplex algorithm to minimize a multivariable function without constraints.

  6. What does the `polyfit(x, y, n)` function return in MATLAB?

    Answer: Coefficients of a polynomial of degree n fitted to data

    polyfit returns a row vector of n+1 coefficients representing the least-squares polynomial fit of degree n to the data.