ok, I have a question first the context:
I have a series of data that are cartecianas coordinates, I have these coordinates in an excel, with their respective x (longitude) and y (latitude). So far no problem is imported into matlab with the command T = readtable ('name.xlsx').
I need to find how much distance there is between coordinate (i use a simple ecuation sqrt ) 1 and each of the coordinates that follow. then the coordinate 2 and those that follow, then the coordinate 3 and those that continue to N. for which I have the code:
The problem is that now I have the distance between point 1 and the following, but I don't know how to make matlab generate automatic variables up to Length (n), that is, the variable 1 would be the F that goes from the coordinate 1 measuring to each one . I need matlab to generate a 2F, 3F, 4F .... NF variable.
the number of coordinates varies in each file that is why it is necessary to use Length, but I cannot obtain the following distances.
The idea at the end is to have a matrix or an excel or tables, where is the length from position 1 to each one, then position 2 to each 1 of them and so on until N (n given by Length)
The general idea is: I need a code that automatically generates as many variables as I need or that introduces the response columns in a matrix.
The distance from each coordinate point must be measured, to each coordinate point.
for example this data have only 13 point but, i can have 10000 point or more