% initial true state of the robot x0 = [0;0;0.1;0.2]; % dynamics of the robot (continuous time) F= [0,0,1,0,0,0,0,1; 0,0,0,0,0,0,0,0]; % timing variables to = 0.0; dt = 0.1; tf = 10.0; tv (t0:dt:tf)'; % integrate the eoms for the true object opts odeset ('AbsTol', 1e-9, 'RelTol', 1e-9); [T,X] =ode45 (@eom_robot, tv, x0, opts, F); = Now, we are ready to simulate the true path of our robot. We will do this using numerical integration to solve the initial value problem x(t)= F(t)x(t) st.x(10) = Xo (5.78)

Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
icon
Related questions
Question

I need help in MATLAB. I saw my professor run the following code. I can't seem to get it to work. Can you help me get it working?

% initial true state of the robot
x0 = [0;0;0.1;0.2];
% dynamics of the robot (continuous time)
F= [0,0,1,0,0,0,0,1; 0,0,0,0,0,0,0,0];
% timing variables
to = 0.0;
dt = 0.1;
tf = 10.0;
tv
(t0:dt:tf)';
% integrate the eoms for the true object
opts odeset ('AbsTol', 1e-9, 'RelTol', 1e-9);
[T,X] =ode45 (@eom_robot, tv, x0, opts, F);
=
Transcribed Image Text:% initial true state of the robot x0 = [0;0;0.1;0.2]; % dynamics of the robot (continuous time) F= [0,0,1,0,0,0,0,1; 0,0,0,0,0,0,0,0]; % timing variables to = 0.0; dt = 0.1; tf = 10.0; tv (t0:dt:tf)'; % integrate the eoms for the true object opts odeset ('AbsTol', 1e-9, 'RelTol', 1e-9); [T,X] =ode45 (@eom_robot, tv, x0, opts, F); =
Now, we are ready to simulate the true path of our robot. We will do this using numerical integration to solve the initial
value problem
x(t)= F(t)x(t) st.x(10) = Xo
(5.78)
Transcribed Image Text:Now, we are ready to simulate the true path of our robot. We will do this using numerical integration to solve the initial value problem x(t)= F(t)x(t) st.x(10) = Xo (5.78)
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Elements Of Electromagnetics
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY