-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStart.m
More file actions
27 lines (24 loc) · 879 Bytes
/
Start.m
File metadata and controls
27 lines (24 loc) · 879 Bytes
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
26
27
%% Initial Clear Section
clear % Clear any remaining variables in the workspace
close all % Close any open process from previous executions (Like: figures)
clc % Clear the command window
%% Add global declarations
global NumberOfCirculations speeds TimeSteps
NumberOfCirculations=100;
speeds=[4 2 1];
TimeSteps=200;
%% Testing lines if needed
% Test 1
% draw_sphere(5,0,0);
% Test 2
% animateOrbit(StarRadius,planetRadius,majorAxis,minorAxis)
% animateOrbit(200,25,1000,750);
% Test 3
% animateOrbit(StarRadius,planetsRadii,majorAxes,minorAxes) - all parallel
% animateOrbit(300,[25 150 75],[1000,2000,3000],[750,1500,2250]);
% Test 4
% animateOrbit(StarRadius,planetRadius,majorAxis,minorAxis)
% - not parallel prbits
% animateOrbit(300,[25 150 75],[1300,2200,3500],[1000,2000,2500]);
%% Start Script section
animateOrbit(300,[25 150 75],[1300,2200,3500],[1000,2000,2500]);