Determine vector components based on vector scaling and change of origin

1 次查看(过去 30 天)
Consider a known vector k and an unknown vector L. L is positioned between vector k and an unknown fixed point in space. The vector L is comprised of two components, but is subject to change over time, hence a scaling factor delta(t).
I would like to determine the vector components of L, such that w can be determined.
I am able to translate and rotate the coordinate origin and sample the data of x(t), y(t), and theta(t), while also sampling the change of vector L collected in delta(t).
I am figuring that a least-square optimisation is needed to determine L's components, where an error based on the sampling data is minimised. However, so far I have been unable to setup the scheme.
Thanks.

回答(1 个)

Ganapathi Subramanian R
Hi Ole,
I understand that you are working on vector components and would like to know the implementation of least-square optimization. Please refer the below documentation to learn more about least square optimization algorithms and the solvers present in Optimization Toolbox to implement it.
Kindly refer the below example for further information on how to utilize the solvers in Optimization Toolbox.

类别

Help CenterFile Exchange 中查找有关 Nonlinear Optimization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by