Home>

Control system programming using MATLAB.
State space model (two-dimensional): X (t) = X (t-1) + v * dt The position coordinates of X (t) given by the formula like
I'm doing a plot on a graph using for minutes to check the robot's trajectory.
However, since plot is used, the trajectory is represented by "points" in the graph.
Somehow, I want to connect the dots and express the trajectory with "lines", but it doesn't work.
Please tell me if there is any way.

Implemented code (image)

for t 1:50

X (t) = X (t-1) + v * dt;

plot (X (t))

end

It looks like this. Thank you.