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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Covering some basic topics I haven't seen elsewhere on Cody.

Given 2 input variables, output true if they are equal, false otherwise. Note that the function should assume NaN's are equal to each other.

225 correct solutions
288 incorrect solutions

Last solution submitted on Apr 10, 2015

1 player likes this problem

1 Comment

Ahsan Zamee
on 21 Feb 2015

i though this would simply worked by isequal function, but its not for the 2nd test suite, why its happening?

1 Comment

Pavan Toraty
on 30 Oct 2013

Can add more test cases with data including 'inf' to fail my solution.

1 Comment