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
Remove all the words that end with "ain"
How to find the position of an element in a vector without using the find function
So many choices
Replicate elements in vectors
07 - Common functions and indexing 2
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