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

1 Ansicht (letzte 30 Tage)
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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by