Linear transformation 2D

Hi,
I have two vectors for x and y coordinates. x = [-2, -1, 1]; and y = [-3, 0, 1]. the black dots are position values recorded. All the x coordiates are in one direction (all to the right; more positive as time goes on).
I would like to make it into 1 dimensional and I think I have to use linear transformation. May I know if linear transformation is correct to be used? and also is there any built in function or examples of linear transformation of Matlab? Sorry if my question is quite general and might not be related to Matlab directly? thanks in advance!

5 个评论

KSSV
KSSV 2020-6-19
编辑:KSSV 2020-6-19
Question is not clear...What do you mean by making 1 D?
What do you want to do? What is the objective, what do you want to achieve? What do you intend to use it for and how? This is in at least one sense already a 1-D curve, it has a finite length, so the fractal dimension is definitely 1.
The blue line is the path of an animal in an experiment. Each position was linearized into x and y coordinates. the red box in the picture is the linear track where animal walked.
1D I meant was 1-dimensional coordinate which is parellel to long axis of the linear track. I cannot ignore y-axis as long axis of linear track is not parallel to the x-axis.
Take the mean of all the coordinates.....make the line parallel tolong axes pass through the mean of (x,y)...will it work ?
Before you ask questions, just have a look at your problem, plot your data. Are your points on a 1-D line? If they are not on a line, then you have to ask yourself if your current question makes sense. If that is the case you should have a think about more specifically what you want to achieve. Do you for example want a plot of how long distance your animal have traveled as a function of "time" (or whatever your loging-points refer to)

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息

提问:

HYZ
2020-6-19

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by