C2D = @(C) cosd(rad2deg(children(C, 1))) mapSymType(Expression, 'cos', C2D)
Simplifying equations with trigonometric terms written in terms of degrees and not radians
1 view (last 30 days)
Show older comments
I am trying to simplify equations which contains trigonometric terms.
For example, the final output reads: sin(40x) +cos(50y). Here the simplification is made such a way that the units of the variables x and y is radians. I can manually modify and simplify the equation for supporting the units as degrees. However, is there a way to tell MATLAB to simplify the equations and present them as cosd and not cos?
0 Comments
Answers (1)
Walter Roberson
on 3 Jun 2023
0 Comments
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!