How to run this code in matlab ?
Show older comments
Please, go to this page and help me, i don't know how to running this code
2 Comments
Jan
on 17 Dec 2012
@Jonathan: The linked document contains beside other things this:
Find tau such that p_k=z_j+tau * d_j minimizes m_k(p_k) in 4.5 and satisfies ||p_k||=Delta_k;
Do you really expect, that a user of this forum is able and willing to do this for you?
Answers (1)
Image Analyst
on 17 Dec 2012
1 vote
Here's some hints. The |stuff||| is done by abs(stuff) in MATLAB, and the superscript T is done by the ' (transpose) operator. Terms like x with subscript 2i-1 are done via indexing of an array, like x(2*i-1). Superscript 2 (for squaring) is done by caret 2, ^2. But you'd better read the getting started section to learn how to program in MATLAB first. We can't write the program for you - no one has time for that, and wouldn't anyway since it's your homework.
Categories
Find more on Integration with Online Platforms 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!