# exampleVoltageAnalysis

Example analysis of maximum and minimum feeder voltages through time

## Contents

- Syntax
- Description
- Inputs
- Outputs
- Example

## Syntax

    exampleVoltageAnalysis(basecaseFile,solarScenarioFiles);
    exampleVoltageAnalysis();

## Description

Example function for analysis of maximum and minimum feeder voltages through time. The simulation stops at each time step for MATLAB to process the state of the OpenDSS simulation

## Inputs

- `basecaseFile` - optional input with the link to the OpenDSS file with the circuit.
- `solarScenarioFiles` - optional input with a cell array of links to the OpenDSS files with the solar scenarios to run

## Outputs

- none - generates a plot of maximum and minimum voltage through time

## Example

Runs the basecase circuit and the distributed solar case

    exampleVoltageAnalysis('ExampleCircuit\master_ckt24.dss',{'ExampleCircuit\Ckt24_PV_Distributed_7_5.dss'})
    %