Again, as in "Is my wife right?" ( http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right ), answer 'yes' regardless of the input.
(This is a slightly more challenging version.)
It would be interesting if the wife ask: "do you think i am wrong?" LOL
use varargin as the input
This is a brilliant question!
good one :)
great twist to a simple problem!
Read the test cases to notice the trick!
delete this garbage
Very simple problem, yet powerful
This is awesome
I don't quite understand what extra piece this is asking for. Could someone explain a bit more explicitly? I have test 1 correct, but test 2 failed.
It's difficult to give much of a hint without giving away the answer. The key is that your function needs to be able to accept ANY input.
thats a tricky one. it really helps to improve coding practice.
Very very tricky problem
I suggest to make more description for your problem
I think that "Honey,do you think I'm wrong?" really is the one your wife need to ask,luckily,she seems bossy,not tricky.LOL
In test suit in two cases you showed but answer 'yes' not working
You need to make sure that the function can handle multiple inputs. It really goes to show you that you can't just accept what is given to you as is!
give nth decimal place of pi
vectorization in N
Free passes for everyone!
Find a Pythagorean triple
Matlab Basics - Convert a row vector to a column vector
Flip the bit
All your base are belong to us
Figurate number triangle
The Hitchhiker's Guide to MATLAB
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