Cody

Problem 45446. Create logarithmically spaced values (★)

Solution 2912242

Submitted on 4 Sep 2020 by Ramesh Kumar V
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
a = -2; b = 3; n = 6; y_correct = [0.01 0.1 1.0 10.0 100.0 1000.0]; assert(isequal(y_correct,logarithmic_spacing(a,b,n)))

y = 1.0e+03 * 0.0000 0.0001 0.0010 0.0100 0.1000 1.0000

Suggested Problems

More from this Author46

Community Treasure Hunt

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

Start Hunting!