Calculate log multiple columns

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

 采纳的回答

Matt J
Matt J 2022-1-23
编辑:Matt J 2022-1-23

1 个投票

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

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by