How to run this code in matlab ?

Please, go to this page and help me, i don't know how to running this code

2 Comments

Jan
Jan on 17 Dec 2012
Edited: Jan on 17 Dec 2012
Is there any chance that we could guess, what "Algorithm 7.2" is? I cannot even read the magic characters in your formula.
@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?

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 17 Dec 2012
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

Asked:

on 17 Dec 2012

Community Treasure Hunt

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

Start Hunting!