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

1 次查看(过去 30 天)
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?

采纳的回答

Walter Roberson
Walter Roberson 2019-1-16
cellfun(@tan, slope, 'uniform', 0)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by