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

 Réponse acceptée

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 commentaires

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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by