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

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일

0 개 추천

cellfun(@tan, slope, 'uniform', 0)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Standard File Formats에 대해 자세히 알아보기

질문:

2019년 1월 16일

답변:

2019년 1월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by