Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

Walter Roberson
Walter Roberson il 16 Gen 2019
cellfun(@tan, slope, 'uniform', 0)

Più risposte (0)

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by