Equation syntax problem. Can someone help me type it in correctly?
2 views (last 30 days)
Show older comments
I'm pretty new to matlab and i'm not positive how to type this equation in correctly,
function [E_theta] = example_pattern_function(theta_radians, phi_radians)
E_theta = sin(theta_radians).*sin(cos(theta_radians)*3.14159);
E_theta = E_theta / (3.14159*cos(theta_radians));
any suggestions?
1 Comment
Accepted Answer
Walter Roberson
on 18 Sep 2013
(sin(theta) .* sin(pi * cos(theta)) ./ (pi * cos(theta))).^2
0 Comments
More Answers (1)
See Also
Categories
Find more on Performance and Memory in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!