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
Determine if input is odd
Maximum running product for a string of numbers
Check if number exists in vector
Largest Prime Number
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