MATLAB CODE
but i have a problem in finding directivity....
how to put the u(radiation intensity) as a function in directivity code
if u want to use a function in an integral formulation
you can define a sperate mfile and in that file define
the relation of the function
and in the integral formulation u just need recall that function.
I think if u search in attached file you'll find the directivity mfile.
i find the mfile of directivity but when i run,it shows error message that the function U is not define...
i also find the mfile of function U and paste the code in mfile of directicity but no solution....errors occur
Added after 2 minutes:
and also tell me how to plot the directivity function......
u should save the mfile of U function in a seprate mfile not in the main mfile
and for plot directivty you can use fplot , polar ot other function for plot.