How to apply tangent function to each element in a cell array?

1 vue (au cours des 30 derniers jours)
akash sonnad
akash sonnad le 16 Jan 2019
suppose, slope={ [ ], [-0.076,-1.45,-20.5,-0.49], [ ] }; I want to get the angles(radians or degrees) by applying tangent function. How do I do it?

Réponse acceptée

Walter Roberson
Walter Roberson le 16 Jan 2019
cellfun(@tan, slope, 'uniform', 0)

Plus de réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by