I didn't see that the check for the multiplication symbol was commented out for this test suite until I checked your solution...
Sorry about that. I added a statement that that function restriction is lifted in the problem description. Still, I'm impressed that you were able to solve it without using that function.
No worries. Multiplication without the * symbol is easy enough. There's a reason the final variable in my first solution is named "cheat" though; I had no idea how to accomplish the final check otherwise.
Well, I'll take that as a compliment, then, because your problems are clever and often stump me.
Stuff the Board
Is the Point in a Triangle?
Is this triangle right-angled?
Back to basics - mean of corner elements of a matrix
Integer Sequence - II : New Fibonacci
Lights Out 7 - 5x5, x moves
Combined Ages 4 - Non-symmetric with multiples, n ≥ 3
Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays)
Divisible by 16
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