how divise matrice by vector ...?
Show older comments
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
More Answers (1)
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
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!