Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 16 de En. de 2019
cellfun(@tan, slope, 'uniform', 0)

Más respuestas (0)

Categorías

Más información sobre Data Types en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by