Calculate log multiple columns

3 visualizaciones (últimos 30 días)
Fernanda Jesus
Fernanda Jesus el 23 de En. de 2022
Comentada: Fernanda Jesus el 23 de En. de 2022
I was trying to apply log in the fist and second line of this database, but it is no working. I would like to apply log from the column 5 till the end of the data
Germany_Greece(1:2,5:end)=log(Germany_Greece(1:2,5:end));

Respuesta aceptada

Matt J
Matt J el 23 de En. de 2022
Editada: Matt J el 23 de En. de 2022
Your code is correct, assuming Germany_Greece is a matrix and not a table or some other data type.
  3 comentarios
Matt J
Matt J el 23 de En. de 2022
Germany_Greece{1:2,5:end}=log(Germany_Greece{1:2,5:end});
Fernanda Jesus
Fernanda Jesus el 23 de En. de 2022
Thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by