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

조회 수: 27 (최근 30일)
Tamir Eisenstein
Tamir Eisenstein 2019년 5월 13일
답변: abdulrahman abdulbaki 2021년 11월 22일
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

채택된 답변

Adam
Adam 2019년 5월 13일
log( X ./ Y ) ./ Z
100 ./ log( X ./ Y ) - 50

추가 답변 (2개)

Tamir Eisenstein
Tamir Eisenstein 2019년 5월 14일
Thanks Adam!

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by