Given three functions f,g and h, create the composed function y=f(g(h)).
f = @(x) x+1
g = @(x) x/2
h = @(x) x^2
And x1=8; x2=10; x3=1;
y(x1) = 33
y(x2) = 51
y(x3) = 1.5
Getting the indices from a vector
Magic is simple (for beginners)
Derivative of polynomial
Volume and area of a sphere
Do you like your boss?
Replace values under a limit
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office