MATLAB Answers


matrix log of certain columns

Asked by Antonio Melieni on 1 Apr 2019
Latest activity Commented on by Antonio Melieni on 1 Apr 2019
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 :)


Sign in to comment.

1 Answer

Answer by Guillaume
on 1 Apr 2019
 Accepted Answer

result = log(matrix1) + log(matrix2);
then, result(:, 1) is your log(m1c1) + log(m2c1), result(:, 2) is your log(m1c2) + log(m2c2), etc.

  1 Comment

Sign in to comment.