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

1 voto

Your code is correct, assuming Germany_Greece is a matrix and not a table or some other data type.

3 comentarios

Fernanda Jesus
Fernanda Jesus el 23 de En. de 2022
It is a table. What should I change?
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

Preguntada:

el 23 de En. de 2022

Comentada:

el 23 de En. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by