Skip to content

Commit

Permalink
Deployed CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedosama07 committed Apr 25, 2023
1 parent a4e98f8 commit 4987d6a
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 7 deletions.
12 changes: 6 additions & 6 deletions linePerformance.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions main.m
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Binary file added mainstandaloneApplication/main.exe
Binary file not shown.
2 changes: 2 additions & 0 deletions mainstandaloneApplication/mccExcludedFiles.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The List of Excluded Files
Excluded files Exclusion Message ID Reason For Exclusion Exclusion Rule
47 changes: 47 additions & 0 deletions mainstandaloneApplication/readme.txt
Original file line number Diff line number Diff line change
@@ -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.




1 change: 1 addition & 0 deletions mainstandaloneApplication/requiredMCRProducts.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
35000 35010
1 change: 1 addition & 0 deletions mainstandaloneApplication/unresolvedSymbols.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Path Symbol Reason
2 changes: 1 addition & 1 deletion midiumLine.m
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 4987d6a

Please sign in to comment.