diff --git a/longLine.m b/longLine.m index a8b9ba6..9bc1c95 100644 --- a/longLine.m +++ b/longLine.m @@ -16,5 +16,6 @@ msg = [line1; line2; line3; ""; line4; line5]; msgbox(msg, "Long Line", CreateStruct); + [A, B, C, D] = struct('x', num2cell([NaN, NaN, NaN, NaN])).x; -end \ No newline at end of file +end 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