how divise matrice by vector ...?

Hey I have a small question please
mat=magic(3)
vect=[1;0;2]';
pp=mat/vect
Any one can explain to me hw matlab calculate values of pp?
p=
4
3.40000000000000
1.60000000000000
thanks

 Accepted Answer

Star Strider
Star Strider on 16 May 2014
See the documentation for mrdivide (matrix right-divide) for details.

2 Comments

thank you
My pleasure!
The MATLAB documentation describes it much better than I ever could.

Sign in to comment.

More Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 16 May 2014
Edited: Azzi Abdelmalek on 16 May 2014
For the equation mat*p=h if the solution exist then Matlab will find it when you write
p=mat/h
It appears in your case there is no solution
Look at this example
m=[1 3 2]'*[4 7 8]
m/[4 7 8]

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Asked:

on 16 May 2014

Commented:

on 16 May 2014

Community Treasure Hunt

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

Start Hunting!