Cody

Problem 44249. Pipeline - Variable-length Input

Design the gt(>) method of function_handle so that:

>> 1 > @sin > @cos
ans =
       0.666366745392881
>> cos(sin(1))
ans =
       0.666366745392881
>> {1, 3, 3} > @linspace
ans =
   1     2     3
>> linspace(1, 3, 3)
ans =
   1     2     3

The gt.m you submitted will be moved to the class folder @function_handle:

mkdir @function_handle
movefile submission/gt.m @function_handle

See Also: Problem 42817. Pipeline

Solution Stats

55.56% Correct | 44.44% Incorrect
Last solution submitted on Jul 30, 2018

Problem Comments