Apply an element-wise calculation of an equation to a matrix

23 views (last 30 days)
Hi MATLAB experts,
How should I express the following formulas in order to apply each one to each element in a 3D matrix:
1) ln(X/Y) / Z
2) 100 / ln(X/Y) - 50
Thanks!
Tamir

Accepted Answer

Adam
Adam on 13 May 2019
log( X ./ Y ) ./ Z
100 ./ log( X ./ Y ) - 50

More Answers (2)

Tamir Eisenstein
Tamir Eisenstein on 14 May 2019
Thanks Adam!

abdulrahman abdulbaki
abdulrahman abdulbaki on 22 Nov 2021
Hi MATLAB experts,
how do i preform element-by-element
e^B−B∗lnA
(2*A+B)/(5ln(A))

Categories

Find more on Exponents and Logarithms 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!