How to let the data transfer into logarithmic formal?
4 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
dpb
2016-10-4
data(:,3)=log(data(:,2)); % natural log
data(:,3)=log10(data(:,2)); % base 10 log
take your pick...
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!