Automatic flow chart
H = FUN_FLOWCHART(LOSSES,POUT) plot a flowchart diagram, useful for energie and power synthesis. LOSSES is a vector with the various considered losses and POUT is the considered usefull power.H is a figure handler.
Example:
LOSSES = [0.3 5 3 2]; % Watts
POUT = 10; % Watts
h = fun_flowchart(LOSSES,POUT)
H = FUN_FLOWCHART(LOSSES,POUT,TXT) add label for each loss and/or the input and output power.The input power is the output power plus the losses ;-). CELL is a cell array.
Example:
LOSSES = [0.3 5 3 2]; % Watts
POUT = 10; % Watts
TXT = {'motor' 'wheel/road' 'wind' 'reductor'}
h = fun_flowchart(LOSSES,POUT,TXT)
LOSSES = [0.3 5 3 2]; % Watts
POUT = 10; % Watts
TXT = {'motor' 'wheel/road' 'wind' 'reductor' 'to the wheel' 'fuel'}
h = fun_flowchart(LOSSES,POUT,TXT)
H = FUN_FLOWCHART(LOSSES,POUT,TXT,UNIT) permits to define the flow unit. UNIT is a string like UNIT='kW'
Example:
LOSSES = [0.3 5 3 2]; % Watts
POUT = 10; % Watts
TXT = {'motor' 'wheel/road' 'wind' 'reductor' 'to the wheel' 'fuel'}
UNIT = 'kW'
h = fun_flowchart(LOSSES,POUT,TXT,UNIT)
H = FUN_FLOWCHART(LOSSES,POUT,TXT,K) permits to adjust the arrows size. K must be between 0 and 1.
H = FUN_FLOWCHART(LOSSES,POUT,TXT,UNIT,K) permits to use the FLOWCHART function with all the options.
Cite As
jean-christophe OLIVIER (2024). Automatic flow chart (https://www.mathworks.com/matlabcentral/fileexchange/47699-automatic-flow-chart), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots >
Tags
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |