Minimize L2 Norm of a Function
Show older comments
Hi all
As already aware, I am establishing myself in MATLAB and seeking answers sometimes to trivial queries... But need this to get going, so I apologize if my queries sound stupid to you.
Have got response on just a couple of queries so far, please do give me a go on this. I have a normalized random sequence "a" of length "j", which I want to follow and window function "w"(upramp / downramp). The difference between the sequence values after adding "a" to "w" is "e" or error function.
Now, how can I minimise the L2 Norm of the function e(j) = (a(j)- w(j))??? I can calculate
||e||2 = sqrt (sum ((a(j)- e(j)).^2));
But how do I minimize this function??? A prompt help will be appreciated...
Regards
Accepted Answer
More Answers (1)
Walter Roberson
on 30 Oct 2016
1 vote
It is also possible to express the question for use with fminsearch or fmincon (or the other fmin* functions).
It is not completely clear what you are optimizing. Is it the content of the a vector directly? Is your a variable pre-determined and the question is to find the best order of it ?
2 Comments
M Salman Rashed
on 31 Oct 2016
Edited: Walter Roberson
on 31 Oct 2016
Walter Roberson
on 31 Oct 2016
What is permitted to be varied? Should the a be randomly regenerated many times until you randomly find a good an ? Should a be input to the minimization and the task is to find the best a in a non-random manner? Should some parameter creating the window function w be changed? Should something about the way an is created be changed?
Categories
Find more on Correlation and Convolution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!