this is a great problem iff delivered as audio but not as video...
Liked it, emphasizes the old advice - examine the exam first, answer the exam later ...
But B is not the same as b!
The default call routine has numbers "2" but the check routine expects "two" to be the function call name.
I'm just curious, cause the description doesn't specify it clearly (and there is no test for this): what the output should be when input has more than two b's?
filename cannot start with a number.
Tricky problem - fools the solver with the function name...
FUNCTION NAME STARTS WITH A NUMBER! BLAH! CHANGE 2--> two
"cannot read input file 2_b_or_not_2_b.m " hence it failed to evaluate
why it displays cannot read input file.
change your file name to two_b_or_not_two_b
I'm getting the error: cannot read input file 2_b_or_not_2_b.m. I assume that this isn't on my end...
me too !
Sorry to steal the lead with this lame solution! I was trying different things before realizing the trick, and hadn't changed the solution back.
I can not submit my solution,it always says "failed to evaluate". Who can help me
need to change the function name to two_b_or_not_two_b
I think there is a problem with the test or tests, since even the default solution fails to evaluate with 'Parse error' indicated.
I agree. Function names cannot start with numbers, so this problem should be revised.
Given an unsigned integer x, find the largest y by rearranging the bits in x
Return elements unique to either input
Flag largest magnitude swings as they occur
Cell Counting: How Many Draws?
Back to basics 4 - Search Path
Back to basics 6 - Column Vector
Back to basics 15 - classes
Back to basics 5 - Clipboard
Back to basics 14 - Keywords
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office