• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/8

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

8 Cards in this Set

  • Front
  • Back

Approximate a zero near x0 of a function, or in an interval [a,b]

x=fzero(function,x0)


x=fzero(function,[a b])


[x fval]=fzero(function,x0)




(can call another function inside ' ')

Find local minimum of a function between (x1,x2)

x = fminbnd(function,x1,x2)


[x fval] = fminbnd(function,x1,x2)

Find local maximum of a function between (x1,x2)

x = fminbnd(-function,x1,x2)

Integrate a function from a to b

q = quad('function',a,b) -- Simpson method


q = quadl('function',a,b) -- Lobatto method


q = trapz(x,y) (x,y are vectors)




must use matrix operations in 'function'

solve ODE: step 1

write in dy/dt = f(t,y)


t in [to,tf]


Initial condition y = yo, t=to

solve ODE: step 2

create user-defined function on a separete file of anonymously:


function dydt = ODEfunc(t,y)


dydt = f(t,y)

slove ODE: step 3

choose a solver ode45, ode23, ode113, ode15s, ode23s, ode23t, ode23tb

solve ODE: step 4: solve

[t,y] = solver_name(ODEfunc,tspan,yo)