I think you want to write A and not x:
test case #2 and 3 should be corrected. Instead of x, it should be A
What elements do you consider the "surrounding arrays"?
Surrounding arrays apparently are the elements right above, below, left, and right the zero elements. Found out by reverse engineering. The x is still a mystery.
More tests please. A lot of solutions assume that 0 can't be in the first (or last) column.
7 segment LED display
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Count up then down
04 - Scalar Equations 2
Sum the 'edge' values of a matrix
Convert Fahrenheit to Celsius
Distance a ball travels after throwing vertically
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