Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.315 kB
function rdivide(A,B)
%% rdivide(A, B)
%% This function returns the matrix arraywise right division of A and B.
%% Equivalent to A./B
if isscalar(A)
return arrayfun(@(y) A/y, B)
end
if isscalar(B)
return arrayfun(@(x) x/B, A)
end
return arrayfun(@(x,y) x/y, A,B)
endfunction
Jump to Line
Something went wrong with that request. Please try again.