Work in small groups at the computer to solve the following exercises.
addme.m
that accepts
one or two inputs and computes the sum of the number with itself or
the sum of the two numbers. The function must be then able to return
one or two outputs (a result and its absolute value). [Hint: you may
need the system variable nargin
]ployfit
and another via
fminsearch
. Finally plot the points and the fitted curve.pt= p0+ utsmt+ |
|
|
| g |2 ti4 − 4( g· Δ + sm2 )ti2 + 4| Δ |2 = 0, Δ= E− S |
p″t = g − k p′t − c p′t | p′t| |
pt = |
| + B, A = sm u − |
| , B = p0− |
| . |