Array Division
Show older comments
When I entered two arrays,
u = [1 2 3 4];v = [5 6 7 8];
and did the division using,
u/v
I got,
ans = 0.4023.
How to interpret the answer and what's the definition of array division like 'u/v' rather than element-wise 'u./v'?
Thanks.
Accepted Answer
More Answers (2)
Malcolm Lidierth
on 20 Dec 2011
Were you expecting this?
>> u = [1 2 3 4];v = [5 6 7 8];
>> u./v
ans =
0.2000 0.3333 0.4286 0.5000
Note the "." in
"./"
Sean de Wolski
on 20 Dec 2011
doc mrdivide
is a good place to start.
Categories
Find more on Linear Algebra 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!