Is there a way to apply multiple inputs to multiple functions?
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!