How do I convert each data value in a column matrix to log10 values

want column matrix of numbers converted to a column matrix of the log10 of the numbers

 Accepted Answer

Is this a trick question? Something you're not telling us? to calculate the log10 of a matrix, you use the log10 function:
v = [10; 100; 2000];
log10(v)

2 Comments

Not a trick question jut not had to do this before. Very useful to be able to do this so efficiently to a column matrix of 1000 plus data points. Help much appreciated.
Most matlab functions can operate on the whole matrix at once. That's the whole point of matlab.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!