필터 지우기
필터 지우기

matrix log of certain columns

조회 수: 2 (최근 30일)
Antonio Melieni
Antonio Melieni 2019년 4월 1일
댓글: Antonio Melieni 2019년 4월 1일
Hi :)
I have to matrices 527040x4 and 527040x4
now i want to calc the log(m1c1) + log(m2c1), log(m1c2)+log(m2c2), log(m1c3)+log(m2c3) and log(m1c4)+log(m2c4)
anybody an idea :)

채택된 답변

Guillaume
Guillaume 2019년 4월 1일
Simply,
result = log(matrix1) + log(matrix2);
then, result(:, 1) is your log(m1c1) + log(m2c1), result(:, 2) is your log(m1c2) + log(m2c2), etc.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by