diff options
author | Siddharth Agarwal | 2019-09-03 18:27:40 +0530 |
---|---|---|
committer | Siddharth Agarwal | 2019-09-03 18:27:40 +0530 |
commit | 8ac15bc5efafa2afc053c293152605b0e6ae60ff (patch) | |
tree | e1bc17aae137922b1ee990f17aae4a6cb15b7d87 /Working_Examples/3432/CH6/EX6.4 | |
parent | 52a477ec613900885e29c4a0b02806a415b4f83a (diff) | |
download | Xcos_block_examples-master.tar.gz Xcos_block_examples-master.tar.bz2 Xcos_block_examples-master.zip |
Diffstat (limited to 'Working_Examples/3432/CH6/EX6.4')
-rwxr-xr-x | Working_Examples/3432/CH6/EX6.4/DEPENDENCIES/fig_settings.sci | 9 | ||||
-rwxr-xr-x | Working_Examples/3432/CH6/EX6.4/Ex6_4.sce | 28 | ||||
-rwxr-xr-x | Working_Examples/3432/CH6/EX6.4/Ex6_4_f0.pdf | bin | 0 -> 37569 bytes |
3 files changed, 37 insertions, 0 deletions
diff --git a/Working_Examples/3432/CH6/EX6.4/DEPENDENCIES/fig_settings.sci b/Working_Examples/3432/CH6/EX6.4/DEPENDENCIES/fig_settings.sci new file mode 100755 index 0000000..5d5e7d4 --- /dev/null +++ b/Working_Examples/3432/CH6/EX6.4/DEPENDENCIES/fig_settings.sci @@ -0,0 +1,9 @@ +//------------------------------------------------------------------
+//figure handel settings
+f=get("current_figure"); //Current figure handle
+f.background=8; //make the figure window background white
+l=f.children(1);
+l.background=8 ;//make the text background white
+id=color('grey');
+xgrid(id);
+//------------------------------------------------------------------
diff --git a/Working_Examples/3432/CH6/EX6.4/Ex6_4.sce b/Working_Examples/3432/CH6/EX6.4/Ex6_4.sce new file mode 100755 index 0000000..6e1124a --- /dev/null +++ b/Working_Examples/3432/CH6/EX6.4/Ex6_4.sce @@ -0,0 +1,28 @@ +//Example 6.4
+//Bode Plot with Complex Poles.
+
+xdel(winsid())//close all graphics Windows
+clear;
+clc;
+//------------------------------------------------------------------
+//System transfer function and its bode plot
+K=10;
+s=poly(0,'s');
+Gs=syslin('c',(K)/(s*(s^2+0.4*s+4)));
+//The bode plot of the system
+
+fmin=0.1/2/%pi; //mininmum frq. in Hz for response (0.1 rad/sec)
+fmax=10/2/%pi; //maximum frq. in Hz for response (100 read/sec)
+//------------------------------------------------------------------
+//Bode plot for frequency in Hz (scilab ver. 5.4.1)
+//bode(g,fmin,fmax);
+//OR
+//Bode plot for frequency in rad/sec (scilab ver. 5.5.1)
+bode(Gs,fmin,fmax,0.01,"rad")
+
+//------------------------------------------------------------------
+title(['Bode plot for a transfer function with complex poles';...
+ '(a) magnitude...
+ (b) phase'],'fontsize',3)
+
+//------------------------------------------------------------------
diff --git a/Working_Examples/3432/CH6/EX6.4/Ex6_4_f0.pdf b/Working_Examples/3432/CH6/EX6.4/Ex6_4_f0.pdf Binary files differnew file mode 100755 index 0000000..58d9414 --- /dev/null +++ b/Working_Examples/3432/CH6/EX6.4/Ex6_4_f0.pdf |