Question: I need help with my matlab code, can someone assist me to make it up to project specifications? The code is below, then the project
I need help with my matlab code, can someone assist me to make it up to project specifications? The code is below, then the project specifications are after. PLEASE help make my code WORK. IT NEEDS TO WORK AND SHOW EACH OF THE INCISIONS, AND THEN A RESULT WITH THE INCISIONS TOGETHER.
Define the time intervals for the three cuts
t::;
t::;
t::;
Define the control signals for the cutting head
x @t cos t ;
y @t sin t ;
x @t cos;
y @t sin;
x @t cost t pi ;
y @t sint t pi ;
Calculate the parameters for the cutting head control signals
A absx xi y y;
theta anglex xi y y;
Define the control signals for the cutting head
ax @t xt cos t ;
ay @t yt sin t ;
bx costheta;
by sintheta;
cx @t xt cost t pi ;
cy @t yt sint t pi ;
Plot the signals xt and yt versus time on the same graph
figure;
subplot;
plott xtb t xtr t xtg;
xlabelTime sec;
ylabelxt;
titlext versus Time';
subplot;
plott ytb t ytr t ytg;
xlabelTime sec;
ylabelyt;
titleyt versus Time';
Plot yt versus xt for all three cuts separately
subplot;
plotxt ytb xt ytr xt ytg;
xlabelxt;
ylabelyt;
titleyt versus xt for all three cuts separately';
Plot yt versus xt for all three cuts on the same figure
subplot;
plotxt: yt:b xt: yt:r xt: yt:g;
xlabelxt;
ylabelyt;
titleyt versus xt for all three cuts on the same figure';
Add a legend
legendFirst Cut', 'Second Cut', 'Third Cut', 'Location', 'NorthEast';
Show the plot
show;
PROJECT SPECIFCATIONS
A laser cutting surgical tool needs to be programmed to perform an incision in a human ilium pelvichip
bone rectangular area of mm by mm
The additional cuts within the incised rectangular piece that is removed are to have the shapes within
the rectangular region
In order to produce such an incision, three separate cuts are required.
The first cut is produced during a time interval t sec with the cutting head control signals:
xt cost and yt sint
The second cut is produced during a time interval t sec with the cutting head control signals:
xt cost and yt sint
The third and final cut is produced during a time interval t sec with the cutting head control
signals:
xt axtut u tt xutt bx rtt r ttxutt cxtuttutt bxrtt yutt
yt aytut u tt yutt by rtt r ttyutt cytuttutt byrtt yutt
where
x cos x cos
y sin ysin
y sin A x x jyy
theta phase angle xx jyy tpi
t t A t tpi bx costheta by sintheta axt
