how divise matrice by vector ...?

1 view (last 30 days)
Firas
Firas on 16 May 2014
Commented: Star Strider on 16 May 2014
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
Star Strider
Star Strider on 16 May 2014
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 Creating and Concatenating Matrices 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!