Cody

Solution 1876298

Submitted on 16 Jul 2019
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   Fail
x =4; n=3; y_correct = [1 100 10000]; assert(isequal(Log_vec(x,n),y_correct))

Error using linspace (line 22) Inputs must be scalars. Error in logspace (line 25) y = 10 .^ linspace(d1, d2, n); Error in Log_vec (line 2) logspace(0 : x,n) Error in Test1 (line 4) assert(isequal(Log_vec(x,n),y_correct))

2   Fail
x =2; n=3; y_correct = [1 10 100]; assert(isequal(Log_vec(x,n),y_correct))

Error using linspace (line 22) Inputs must be scalars. Error in logspace (line 25) y = 10 .^ linspace(d1, d2, n); Error in Log_vec (line 2) logspace(0 : x,n) Error in Test2 (line 4) assert(isequal(Log_vec(x,n),y_correct))