Skip to content
Snippets Groups Projects
Commit 6e39babd authored by lmaresz's avatar lmaresz
Browse files

Antenna and Trace minor fixes

parent 92265c42
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ classdef Antenna ...@@ -19,7 +19,7 @@ classdef Antenna
end end
end end
function [rays, complex_amplitudes] = generate_rays(obj, phi) function [rays, complex_amplitudes] = generateRays(obj, phi)
rays(size(phi, 2)) = Ray; rays(size(phi, 2)) = Ray;
for k = 1:size(phi, 2) for k = 1:size(phi, 2)
rays(k) = Ray(obj.position, [cos(phi(k)), sin(phi(k))]); rays(k) = Ray(obj.position, [cos(phi(k)), sin(phi(k))]);
......
...@@ -3,7 +3,7 @@ classdef Trace < handle ...@@ -3,7 +3,7 @@ classdef Trace < handle
properties properties
id; id;
wavelength; wavelength;
rays Ray = []; rays Ray;
length = +inf; length = +inf;
init_phase = 0; init_phase = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment