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));

 Risposta accettata

Matt J
Matt J il 23 Gen 2022
Modificato: Matt J il 23 Gen 2022

1 voto

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

3 Commenti

It is a table. What should I change?
Germany_Greece{1:2,5:end}=log(Germany_Greece{1:2,5:end});
Thanks!

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by