Problem 52015. Logarithmically spaced vector creation using linspace
Create a vector y containing n logarithmically spaced values between a and b, with a < b. Avoid using logspace and use the linspace operator instead.
Solution Stats
Problem Comments
-
1 Comment
Christian Schröder
on 16 Nov 2022
Please don't use isequal to compare floating-point numbers (as you do in the first test suite case).
Solution Comments
Show commentsProblem Recent Solvers27
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15341 Solvers
-
989 Solvers
-
464 Solvers
-
07 - Common functions and indexing 6
443 Solvers
-
1418 Solvers
More from this Author52
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!