I'd like to include the test case listed below, but I'm stumped as to why it doesn't work:
x1 = [ 1 2 3 ]
x2 = [ 10 20 ]
y_correct = [9 19; 8 18; 7 17]
y_actual = gridit(@minus, x1, x2);
Alex, I believe it is because the 'minus' function requires two input arguments. The test cases and the example use functions that accept a single input argument. Hope that helps.
Find matching parenthesis
Specific Element Count
Calculate the Hamming distance between two strings
sum of non-primes
Generate a random matrix A of (1,-1)
Create a recurrence matrix for a vector of data
"Look and say" sequence
Construct a string from letters and counts
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