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