How to let the data transfer into logarithmic formal?

3 vues (au cours des 30 derniers jours)
Wong Yi
Wong Yi le 4 Oct 2016
Réponse apportée : dpb le 4 Oct 2016
How to let the data into log formal? In the data,there are two columns.One is the id, another is the GDP per capital of US. I am confused that how to let the second column's data'USA‘ transfer into logarithmic formal. Could you tell me the code? Thanks

Réponse acceptée

dpb
dpb le 4 Oct 2016
data(:,3)=log(data(:,2)); % natural log
data(:,3)=log10(data(:,2)); % base 10 log
take your pick...

Plus de réponses (0)

Catégories

En savoir plus sur Data Import and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by