Cody

Solution 1030446

Submitted on 24 Oct 2016 by Steven Kowal
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
x = '24-Oct-2016 20:26:28'; y_correct = 73587999999895.69; assert(isequal(timeOfDay(x, 'nanoseconds'),y_correct)) units = {'microseconds', 'milliseconds',... 'seconds', 'minutes', 'hours', 'days'}; factors = [1e3; 1e3; 1e3; 60; 60; 24]; for i = 1:6 y_correct = y_correct./factors(i); assert(isequal(timeOfDay(x, units{i}),y_correct)) end

ans = function_handle with value: @assignin ans = function_handle with value: @assignin ans = function_handle with value: @assignin ans = function_handle with value: @assignin ans = function_handle with value: @assignin ans = function_handle with value: @assignin ans = function_handle with value: @assignin