consider using isequalwithequalnans (isequaln) against NaN instead of isequal against 'NaN' in test 7.
how to place negative amount of 'wheat' on a chessboard?
the prob is gd but the test suites are unnecessarily jumbled up.
Removed the cases with negative quantities. Everyone should be able to solve the problem now.
Is test 4 incorrect?
@ChrisR, Yes it was incorrect, and has been corrected.
This should also be slimmed down somehow.
Someone can easily beat this lead.
Swap the first and last columns
We love vectorized solutions. Problem 1 : remove the row average.
Find nth maximum
Area of an Isoceles Triangle
Create a vector
Possible Outcomes of American Roulette
Calculate Alcohol By Volume with Original and Final Gravity
Will there be a new leader?
Wheat on a chessboard pt 1
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