Determine vector components based on vector scaling and change of origin

1 回表示 (過去 30 日間)
Ole Hermansen
Ole Hermansen 2022 年 7 月 13 日
回答済み: Ganapathi Subramanian R 2023 年 10 月 6 日
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
Ganapathi Subramanian R 2023 年 10 月 6 日
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 Center および File ExchangeNonlinear Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by