source: ETALON/simulations/FarZoneCriterium/pw_farZoneCrit.m @ 244

Last change on this file since 244 was 244, checked in by malovyts, 9 years ago

Added Far zone criterium plot making script

File size: 669 bytes
Line 
1function result=pw_farZoneCrit(d,N,Name)
2y=@(x)N^2*d*(1+cos(x));
3theta=0:180;
4theta=theta*pi/180;
5
6fig = figure('visible', 'off');
7plot(y(theta).*cos(theta),y(theta).*sin(theta), 'LineWidth', 2);
8xlabel('Z , mm');
9ylabel('Y , mm');
10title({'Far zone criterium in ZY plane';['d =' num2str(d) 'mm N = ' num2str(N)]});
11print( fig , '-dpng', [Name '_ZY.png']);
12close(fig);
13
14fig = figure('visible', 'off');
15plot(theta*180/pi,y(theta), 'LineWidth', 2);
16xlabel('\theta , deg');
17ylabel('Criterium , mm');
18grid on;
19%grid minor;
20title({'Far zone criterium related to theta';['d =' num2str(d) 'mm N = ' num2str(N)]});
21print( fig , '-dpng', [Name '_theta.png']);
22close(fig);
23
24end
25
26
Note: See TracBrowser for help on using the repository browser.