How to plot a matrix with reoccurring values?
1 view (last 30 days)
How would I be able to plot matrix with a reoccuring value such as:
where x=x, x1=x-some number, y=y, y1=y-some number, y2=y1-some number, y3=y-some number. I am trying to create a zig zag pattern onto a map using long and lat but do now really know how I would be able to plot it. I was thinking that it would be the same as plotting a regular matrix but am not sure if it the same values would affect the plot in a way that the points would not show up.
ME on 6 Dec 2019
Take for example a matrix:
vals = [1 1;2 1;2 2; 1 2; 1 3; 2 3; 2 4; 1 4];
which is of the form you describe above. Then do:
This gives the following output - is that about what you wanted?