Cody

Problem 1794. 02 - Vector Variables 4

Solution 3355308

Submitted on 24 Oct 2020
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
dVec = logspace(0,1,101); d = VectorFunc(); assert(isequal(d,dVec))

Error using ^ (line 51) Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To perform elementwise matrix powers, use '.^'. Error in VectorFunc (line 2) dVec = 10^(0:0.01:1) Error in Test1 (line 2) d = VectorFunc();

Suggested Problems

More from this Author26

Community Treasure Hunt

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

Start Hunting!