Problem 2916. Matlab Basics II - Log and natural log
Write a function that calculates the difference between the log and natural log of a vector, to two decimal places
example:
x = [10, 100, 1000]
output = [1.3 2.61 3.91]
Solution Stats
Problem Comments
-
1 Comment
Maurizio De Angelis
on 4 Jun 2024
In the description, the difference's terms are swapped
Solution Comments
Show commentsProblem Recent Solvers186
Suggested Problems
-
Increment a number, given its digits
667 Solvers
-
Remove the two elements next to NaN value
663 Solvers
-
Reverse the elements of an array
1059 Solvers
-
Replace multiples of 5 with NaN
451 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
385 Solvers
More from this Author28
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!