how divise matrice by vector ...?
1 view (last 30 days)
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
0 Comments
Accepted Answer
Star Strider
on 16 May 2014
2 Comments
Star Strider
on 16 May 2014
My pleasure!
The MATLAB documentation describes it much better than I ever could.
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]
0 Comments
See Also
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!