Cody

Solution 295438

Submitted on 2 Aug 2013 by William Fligor
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
[minNetflix maxNetflix stdNetflix meanNetflix plotNetflix]= stockAnalysis; NFLX = [ 178.41 181.37 179.73 177.99 179.3 187.88 186.65 188.9 191.49 191.48 193.68 190.87 185 182.09 183.96 186.74 183.03 210.87 217.98 214.08 212.9 211.26 211.49 220.07 218.02 217.63 222.29 223.2 231.07 247.55 240.79 237.72 235.63 235.51 221.6 211.2 215.18 212.44 206.67 204.63 204.23 203.37 210.72 207.4 195.45 192.99 200.02 204.54 201.2 217.11 213.84 213.9 209.4 212.84 221.39 229.06 229.13 230.01 237.32 237.38 237.95 237.78 242.09 244.72 244.23 239.97 233.96 234.86 228.16 233.92 238.75 236.73 235.49 233.33 241.55 244.43 252.22 251.67 228.91 235.96 234.37 232.67 237.19 231.24 229.19 230.31 229.47 236.41 237.63 240.67 245.77 246.52 237.09 236.94 242.54 242.73 245.9 247.83 247.6 259.47 263.75 264.51 270.8 267.26 271.7 273.7 262.59 263.69 262.26 262.57 258.62 257.22 261.13 257.12 249.3 245.67 245.63 253.65 248.66 255.72 256.96 260.12 265.09 264.94 262.69 267.99 289.63 290.96 292.42 295.14 290.74 291.27 298.73 286.62 286.93 279 287.29 281.4 275.81 276.58 281.53 266.91 269.42 266.62 265.99 263.38 257.2 260 245.77 241.11 226.64 237.8 232.42 243.13 244 246.28 239.04 232.24 217.48 205.21 205.21 219.54 216.03 215.83 221.89 225.04 236.28 235.01 233.27 213.11 218.77 216 211.2 203.97 210.05 208.75 208.71 169.25 155.19 143.75 130.03 128.5 128.53 129.36 132.22 127.49 127.14 113.19 113.27 113.25 114.9 119.76 123.24 117.21 111.62 108.66 113.62 117.01 116.04 117.33 111.74 109.42 111.48 117.04 118.84 77.37 79.4 80.86 84.14 82.08 80.09 83.39 92.29 90.02 90.83 90.47 88.05 85.12 87.75 85.72 86.28 81.18 76.46 78.06 74.47 70.45 68.5 63.86 69.95 67.57 64.53 67.17 66.37 70.12 68.14 71.96 69.42 70.89 75.26 72.11 71.04 69.72 69.82 67.15 71.4 70.97 73.84 72.62 70.6 69.2 69.3 69.29]; assert(isequal(min(NFLX), minNetflix)) assert(isequal(max(NFLX), maxNetflix)) assert(isequal(mean(NFLX), meanNetflix)) assert(isequal(std(NFLX), stdNetflix)) poltHandle = get(plotNetflix); plotColor = poltHandle(1).Color; plotX = poltHandle(1).XData; plotY = poltHandle(1).YData; assert(isequal(plotX,1:length(NFLX))) assert(isequal(plotY,NFLX))

2   Pass
%% fid = fopen('stockAnalysis.m'); s = textscan(fid,'%s'); ss = strcat(s{1}{:}); assert(isequal(isempty(regexp(ss, 'min\(\w*\)')), 0)) assert(isequal(isempty(regexp(ss, 'max\(\w*\)')), 0)) assert(isequal(isempty(regexp(ss, 'mean\(\w*\)')), 0)) assert(isequal(isempty(regexp(ss, 'std\(\w*\)')), 0))