HW1: Assignment 1 report added

This commit is contained in:
2025-10-23 04:10:00 +03:00
parent 33a1cc69bd
commit de85e9cf10
14 changed files with 175 additions and 16 deletions
+3
View File
@@ -0,0 +1,3 @@
# Matlab auxiliary files
*.asv
Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 99 KiB

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 134 KiB

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

+4 -4
View File
@@ -137,8 +137,8 @@ annotation(f1, 'textbox', [0.75 0.05 0.4 0.3], ...
drawnow;
% save figure
exportgraphics(f1, sprintf('Root Locus c%.3g.png', c), 'Resolution', 300);
% exportgraphics(f1, sprintf('Root Locus c%.3g.pdf', c));
exportgraphics(f1, sprintf('Root_Locus_c%.3g.png', c), 'Resolution', 300);
% exportgraphics(f1, sprintf('Root_Locus_c%.3g.pdf', c));
f2 = figure( ...
@@ -167,5 +167,5 @@ annotation(f2, 'textbox', [0.7 0.05 0.4 0.25], ...
% save figure
exportgraphics(f2, sprintf('Step Responce c%.3g_Kp%.3g_Ki%.3g.png', c, Kp(best.K), Ki(best.K, c)), 'Resolution', 300);
% exportgraphics(f2, sprintf('Step Responce c%.3g_Kp%.3g_Ki%.3g.pdf', c, Kp(best.K), Ki(best.K, c)));
exportgraphics(f2, sprintf('Step_Responce_c%.3g_Kp%.3g_Ki%.3g.png', c, Kp(best.K), Ki(best.K, c)), 'Resolution', 300);
% exportgraphics(f2, sprintf('Step_Responce_c%.3g_Kp%.3g_Ki%.3g.pdf', c, Kp(best.K), Ki(best.K, c)));
@@ -1,4 +1,4 @@
%% Satellite - Scenario 1 tune FZ-PI
%% Satellite - Scenario 1 tuning FZ-PI
%
% Assignment 1 in Fuzzy systems
%
@@ -87,4 +87,4 @@ fprintf(' SettlingTime : %.4g s\n', best.info.SettlingTime);
fprintf(' Overshoot : %.2f%%\n', best.info.Overshoot);
fprintf(' Peak : %.4g\n', best.info.Peak);
fprintf(' PeakTime : %.4g s\n', best.info.PeakTime);
fprintf(' SS error : %.4g s\n', best.ess);
fprintf(' SS error : %.4g [t=tEnd s]\n', best.ess);
+2 -2
View File
@@ -76,7 +76,7 @@ infoStep = sprintf(['RiseTime : %.4g s\n' ...
'Peak : %.4g (at %.4g s)\n' ...
'SS error : %.3f'], ...
info.RiseTime, info.SettlingTime, info.Overshoot, ...
info.Peak, info.PeakTime, E(end));
info.Peak, info.PeakTime, E(end))
annotation(f1, 'textbox', [0.7 0.05 0.4 0.25], ...
'String', infoStep, 'Interpreter','tex', ...
@@ -85,6 +85,6 @@ annotation(f1, 'textbox', [0.7 0.05 0.4 0.25], ...
% save figure
exportgraphics(f1, sprintf('Step Responce_FZ.png'), 'Resolution', 300);
exportgraphics(f1, sprintf('Step_Responce_FZ.png'), 'Resolution', 300);
% exportgraphics(f1, sprintf('Step Responce_FZ.pdf'));
+4 -4
View File
@@ -75,8 +75,8 @@ title('Scenario 2A: multi-step (60->20->40)');
legend('r','y','Location','best');
% save figure
exportgraphics(f1, sprintf('MultiStep Responce_FZ.png'), 'Resolution', 300);
% exportgraphics(f1, sprintf('Step Responce_FZ.pdf'));
exportgraphics(f1, sprintf('MultiStep_Responce_FZ.png'), 'Resolution', 300);
% exportgraphics(f1, sprintf('MultiStep_Responce_FZ.pdf'));
% 2b
@@ -123,5 +123,5 @@ title('Scenario 2B: trapezoid (0->60, hold, 60->0)');
legend('r','y','Location','best');
% save figure
exportgraphics(f2, sprintf('Trapezoid Responce_FZ.png'), 'Resolution', 300);
% exportgraphics(f2, sprintf('Step Responce_FZ.pdf'));
exportgraphics(f2, sprintf('Trapezoid_Responce_FZ.png'), 'Resolution', 300);
% exportgraphics(f2, sprintf('Trapezoid_Responce_FZ.pdf'));