From: Luca Zanotti Fragonara on
Hello all, I have to solve a system of linear equations, with a particular condition.

My system is in the classical form:

A*x=b

By the way I want that norm(x)=1.

So, I've thought, if I add to matrix A a final row x' I will obtain my condition, I explain in MATLAB code:

newA=[A;x']; newB=[b;1];

newA*x=newB

At this point I'm in the case that I've more equations than unknowns.

I can easily solve this problem with fmincon or other sort of non-linear solutor.
The problem is that now I have to invert newA (with pinv) which contains unknowns.

I was wondering if exists a more straigth forward method (maybe involving symbolic toolbox?) to avoid the use of a non-linear solutor of the problem.

Any hint?

Thank you.
From: Luca Zanotti Fragonara on
I've tried to look about linprog or lsqlin, but seems that there is no way to find solution to this problem in this way.
From: Bruno Luong on
Please see this thread:

http://www.mathworks.com/matlabcentral/newsreader/view_thread/263115

Bruno
From: Luca Zanotti Fragonara on
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hseegc$lt0$1(a)fred.mathworks.com>...
> Please see this thread:
>
> http://www.mathworks.com/matlabcentral/newsreader/view_thread/263115
>
> Bruno

Thank you so much! I've tried to look in previous posts before I've posted, but I didn't find this one. Thank you very much.