-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.m
35 lines (31 loc) · 844 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
26
27
28
29
30
31
32
33
clc
clear
fprintf('-------------------------------------Welcome To Our Robotics Project Main Menu -------------------------------------\n\n');
fprintf('Please Choose an Option From The Menu \n');
cin =1;
while cin==1
fprintf('[1]-Calculate DKPM\n');
fprintf('[2]-Calculate IKPM\n')
fprintf('[3]-Plotting Working Area\n')
fprintf('[4]-Robot Animation\n')
option=input('Please Enter The Number Of The Option: ');
if option == 1
DKPM_function();
elseif option == 2
IKPM_Function();
elseif option == 3
PlotWorkArea_Function();
elseif option == 4
Animate();
else
fprintf('You hvae enterd a wrong number \n');
end
cont=input('To Continue please enter 1, to Exit enter 0 \n');
if cont==0
cin=0;
elseif cont==1
cin=1;
else
fprintf('You hvae enterd a wrong number \n');
end
end