Azzera filtri
Azzera filtri

matrix log of certain columns

2 visualizzazioni (ultimi 30 giorni)
Antonio Melieni
Antonio Melieni il 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 :)

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by