This is a simple problem. Normaly I use two for-loops in GNU Octave to find the parameter a an

pouzdrotf

pouzdrotf

Answered question

2022-07-06

This is a simple problem. Normaly I use two for-loops in GNU Octave to find the parameter a and b and K.
The cost function I'm going to minimize is:
V = i = 0 N ( | u i K u 0 a b t i | )
Where u i is a vector for measurement and t i is also a measured vector. u 0 is known so only a, b, K is unknow.
Is there any other way to minimize V instead of using three for-loops in GNU Octave?
In my case, two-variables can solve the problem too. The K is just a correction factor. Not necessary to 100%.

Answer & Explanation

postojahob

postojahob

Beginner2022-07-07Added 13 answers

Have you looked at fminsearch? It can minimize a cost function over several parameters (just put them together in one vector).

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?