Is there a way to apply multiple inputs to multiple functions?
Show older comments
I am looking for a way to generate a matrix of results from applying 4 different functions to 5 input values. For example:
- sin(x)
- cos(x)
- sqrt(x)
- round(x)
Using:
- x = 1.1
- x = 1.6
- x = 3.2
- x = 4.7
- x = 8.1
Is there any way to generate a 4x5 matrix with the results of each x-value applied to each function?
Accepted Answer
More Answers (0)
Categories
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!