Equation syntax problem. Can someone help me type it in correctly?

2 views (last 30 days)
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?

Accepted Answer

Walter Roberson
Walter Roberson on 18 Sep 2013
(sin(theta) .* sin(pi * cos(theta)) ./ (pi * cos(theta))).^2

More Answers (1)

matt
matt on 18 Sep 2013
thanks a ton!

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!