Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 290580

Submitted on 26 Jul 2013 by Alfonso Nieto-Castanon

Correct

18Size
Leading solution size is 11.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
%%
get = me();
y = rand(1,12345);
!rm now.m
!rm assert.m
assert(get == now)
[Warning: Function /users/msssystem1/assert.m has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.]
[> In me at 2
  In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14
  In workspacefunc at 7]
[Warning: Function /users/msssystem1/assert.m has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.]
[> In pcode at 122
  In me at 3
  In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14
  In workspacefunc at 7]
[Warning: Function /users/msssystem1/assert.m has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.]
[> In pcode at 147
  In me at 3
  In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14
  In workspacefunc at 7]
[Warning: Function /users/msssystem1/assert.m has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.]
[> In pcode at 173
  In me at 3
  In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14
  In workspacefunc at 7]
[Warning: Function /users/msssystem1/assert.m has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.]
[> In pcode>pcodefile at 245
  In pcode at 217
  In me at 3
  In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14
  In workspacefunc at 7]
[Warning: Function /users/msssystem1/assert.p has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.]
[> In pcode>pcodefile at 245
  In pcode at 217
  In me at 3
  In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14
  In workspacefunc at 7]
[Warning: Function /users/msssystem1/assert.m has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.]
[> In pcode at 223
  In me at 3
  In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14
  In workspacefunc at 7]
[Warning: Function /users/msssystem1/assert.p has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.]
[> In pcode at 223
  In me at 3
  In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14
  In workspacefunc at 7]
tal
rm: cannot remove `now.m': No such file or directory
[Warning: Function /users/msssystem1/assert.m has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.]
[> In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14
  In workspacefunc at 7]
[Warning: Function /users/msssystem1/assert.p has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.]
[> In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14
  In workspacefunc at 7]
[Warning: Function /users/msssystem1/assert.p has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.]
[> In verifyCode>evaluateCode at 227
  In verifyCode at 40
  In fevalJSON at 14
  In workspacefunc at 7]