-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMain.m
25 lines (25 loc) · 788 Bytes
/
Main.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
clc;
clear;
close all;
choice = input('<< Welcome to MNA-MAT - A SPICE netlist simulation tool >> \n 1. Standard Analysis \n 2. Monte Carlo Analysis \n 3. View the results of previous simulation \n');
switch(choice)
case{1}
run('Standard_Analysis.m');
case{2}
run('MonteCarlo.m');
case{3}
if(exist('Results.txt'))
type('Results.txt');
elseif(exist('Results.xls'))
open('Results.xls');
if(exist('MC_values_ode.txt'))
type('MC_values_ode.txt');
end
open('Voltages_graph.fig');
if(exist('Currents_graph.fig'))
open('Currents_graph.fig');
end
else
disp('No results of previous simulation found');
end
end