Let a vector x be the input to our function.
1. If a value of an input vector element x is lower than 0, set this value to 0.
2. If a value of an input vector element x is greater than 1, set this value to 1.
3. Calculate the polynomial of the limited input vector x (0 ... 1) with:
y = 10 * x^3 - 15 * x^4 + 6 * x^5
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers46
Suggested Problems
-
We love vectorized solutions. Problem 1 : remove the row average.
884 Solvers
-
194 Solvers
-
Who is the smartest MATLAB programmer?
789 Solvers
-
Put Two 1D matrices into one 1D matrix
140 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
398 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!