diff --git a/linePerformance.m b/linePerformance.m index eea4acd..8a098f9 100644 --- a/linePerformance.m +++ b/linePerformance.m @@ -9,12 +9,12 @@ switch type case 1 [efficiency, VR, P_r, pf] = CASE1(A, B, C, D); - cftool(P_r, efficiency); - cftool(P_r, VR); + plot(P_r, efficiency); + plot(P_r, VR); case 2 [efficiency, VR, P_r, pf] = CASE2(A, B, C, D); - cftool(pf, efficiency(1:length(efficiency)/2)); - cftool(pf, VR(1:length(VR)/2)); - cftool(pf, efficiency(length(efficiency)/2+1:end)); - cftool(pf, VR(length(VR)/2+1:end)); + plot(pf, efficiency(1:length(efficiency)/2)); + plot(pf, VR(1:length(VR)/2)); + plot(pf, efficiency(length(efficiency)/2+1:end)); + plot(pf, VR(length(VR)/2+1:end)); end \ No newline at end of file diff --git a/main.m b/main.m index 773a669..e8085bc 100644 --- a/main.m +++ b/main.m @@ -17,3 +17,12 @@ [A, B, C, D] = lineParameters(length, R, Cap, L); [efficiency, VR, P_r, pf] = linePerformance(A, B, C, D); + + +fprintf('Line resistance: %f\n', R); +fprintf('Line capacitance: %f\n', Cap); +fprintf('Line inductance: %f\n', L); + +fprintf('***************************************\n'); +fprintf('A = %f + j%f\t B =%f + j%f\n', real(A), imag(A), real(B), imag(B)); +fprintf('C = %f + j%f\t D =%f + j%f\n', real(C), imag(C), real(D), imag(D)); \ No newline at end of file diff --git a/mainstandaloneApplication/main.exe b/mainstandaloneApplication/main.exe new file mode 100644 index 0000000..b2f6b20 Binary files /dev/null and b/mainstandaloneApplication/main.exe differ diff --git a/mainstandaloneApplication/mccExcludedFiles.log b/mainstandaloneApplication/mccExcludedFiles.log new file mode 100644 index 0000000..9d0f909 --- /dev/null +++ b/mainstandaloneApplication/mccExcludedFiles.log @@ -0,0 +1,2 @@ +The List of Excluded Files +Excluded files Exclusion Message ID Reason For Exclusion Exclusion Rule diff --git a/mainstandaloneApplication/readme.txt b/mainstandaloneApplication/readme.txt new file mode 100644 index 0000000..00fba1a --- /dev/null +++ b/mainstandaloneApplication/readme.txt @@ -0,0 +1,47 @@ +main Executable + +1. Prerequisites for Deployment + +Verify that version 9.10 (R2021a) of the MATLAB Runtime is installed. +If not, you can run the MATLAB Runtime installer. +To find its location, enter + + >>mcrinstaller + +at the MATLAB prompt. +NOTE: You will need administrator rights to run the MATLAB Runtime installer. + +Alternatively, download and install the Windows version of the MATLAB Runtime for R2021a +from the following link on the MathWorks website: + + https://www.mathworks.com/products/compiler/mcr/index.html + +For more information about the MATLAB Runtime and the MATLAB Runtime installer, see +"Distribute Applications" in the MATLAB Compiler documentation +in the MathWorks Documentation Center. + +2. Files to Deploy and Package + +Files to Package for Standalone +================================ +-main.exe +-MCRInstaller.exe + Note: if end users are unable to download the MATLAB Runtime using the + instructions in the previous section, include it when building your + component by clicking the "Runtime included in package" link in the + Deployment Tool. +-This readme file + + + +3. Definitions + +For information on deployment terminology, go to +https://www.mathworks.com/help and select MATLAB Compiler > +Getting Started > About Application Deployment > +Deployment Product Terms in the MathWorks Documentation +Center. + + + + diff --git a/mainstandaloneApplication/requiredMCRProducts.txt b/mainstandaloneApplication/requiredMCRProducts.txt new file mode 100644 index 0000000..3ed6af0 --- /dev/null +++ b/mainstandaloneApplication/requiredMCRProducts.txt @@ -0,0 +1 @@ +35000 35010 \ No newline at end of file diff --git a/mainstandaloneApplication/unresolvedSymbols.txt b/mainstandaloneApplication/unresolvedSymbols.txt new file mode 100644 index 0000000..7c2fc16 --- /dev/null +++ b/mainstandaloneApplication/unresolvedSymbols.txt @@ -0,0 +1 @@ +Path Symbol Reason diff --git a/midiumLine.m b/midiumLine.m index 078a7e0..79e068c 100644 --- a/midiumLine.m +++ b/midiumLine.m @@ -1,7 +1,7 @@ function [A, B, C, D] = midiumLine(Z, Y) %midiumLine Summary of this function goes here % function that calculates ABCD parameters of midiuam transmission line -model = input('1. Π model\n2. T model'); +model = input('1. Π model\n2. T model\n'); switch model case 1 [A, B, C, D] = struct('x', num2cell([1 + (Z*Y)/2, Z, Y * (1 + (Z*Y/4)), 1 + (Z*Y)/2])).x;