Hello,
If you see the picture below, I am representing dinamically the blue point with a matrix and imagesc function. What I would like to do is filling the gap bewteen points with more points, so the final graph woould look like a line.
An example how I am plotting the graph
% First point position in the matrix
0 0 0 1 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 00 0 0 0 0 0 0% Next time period the matrix will have other values for the second "blue" point
0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 00 0 0 0 0 1 0% I would like to get automatically a matrix that interpolate between both "1" values and get something like below to draw a line,
0 0 0 1 0 0 0 0 0 0 0 1 0 00 0 0 0 1 0 00 0 0 0 0 1 0
I hope to make myself clear,
Thanks in advance!
Best Answer