Cody

Problem 42462. Dealing with correlation results!

Solution 715919

Submitted on 17 Aug 2015 by Zikobrelli
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
%% x = [1.0000 0.9825 0.9825 1.0000]; y_correct = [0.9825] ; assert(isequal(coeffMat2Vec(x),y_correct))

y = [] y = 0.9825

2   Pass
%% x = [1.0000 0.9999 0.9827 0.9999 1.0000 0.9825 0.9827 0.9825 1.0000]; y_correct = [0.9999 0.9827 0.9825] ; assert(isequal(coeffMat2Vec(x),y_correct))

y = [] y = 0.9999 y = 0.9999 0.9827 y = 0.9999 0.9827 0.9825

3   Pass
%% x = [1.0000 0.9797 0.9797 0.9806 0.9797 1.0000 0.9971 0.9984 0.9797 0.9971 1.0000 0.9983 0.9806 0.9984 0.9983 1.0000]; y_correct = [0.9797 0.9797 0.9806 0.9971 0.9984 0.9983] ; assert(isequal(coeffMat2Vec(x),y_correct))

y = [] y = 0.9797 y = 0.9797 0.9797 y = 0.9797 0.9797 0.9806 y = 0.9797 0.9797 0.9806 0.9971 y = 0.9797 0.9797 0.9806 0.9971 0.9984 y = 0.9797 0.9797 0.9806 0.9971 0.9984 0.9983

4   Pass
%% x = [ 1.0000 0.9815 0.9984 0.9962 0.9981 0.9815 1.0000 0.9822 0.9804 0.9820 0.9984 0.9822 1.0000 0.9994 1.0000 0.9962 0.9804 0.9994 1.0000 0.9996 0.9981 0.9820 1.0000 0.9996 1.0000]; y_correct = [ 0.9815 0.9984 0.9962 0.9981 0.9822 0.9804 0.9820 0.9994 1.0000 0.9996] ; assert(isequal(coeffMat2Vec(x),y_correct))

y = [] y = 0.9815 y = 0.9815 0.9984 y = 0.9815 0.9984 0.9962 y = 0.9815 0.9984 0.9962 0.9981 y = 0.9815 0.9984 0.9962 0.9981 0.9822 y = 0.9815 0.9984 0.9962 0.9981 0.9822 0.9804 y = 0.9815 0.9984 0.9962 0.9981 0.9822 0.9804 0.9820 y = 0.9815 0.9984 0.9962 0.9981 0.9822 0.9804 0.9820 0.9994 y = 0.9815 0.9984 0.9962 0.9981 0.9822 0.9804 0.9820 0.9994 1.0000 y = Columns 1 through 9 0.9815 0.9984 0.9962 0.9981 0.9822 0.9804 0.9820 0.9994 1.0000 Column 10 0.9996

Community Treasure Hunt

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

Start Hunting!