Define the vector cVec:

(all the numbers from 5 to -5 in increments of -0.2)
Using elementwise operations, calculate xVec:
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers492
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15798 Solvers
-
Return a list sorted by number of occurrences
2895 Solvers
-
Returning a "greater than" vector
276 Solvers
-
708 Solvers
-
Test Problem; Create a 5x5 array containing all ones
405 Solvers
More from this Author26
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
copy and paste from test suite