Generate the binary combination as in the example below.
Example: If you are given:
The answer will be:
The answer will appear in double class.
y_correct of Test case #1 is wrong; it requires [ ].
Case 1: [0;1]
test case 1 should be [0;1] ?
I cleaned up the problem statement and fixed the first test.
best among the best
Can we not use de2bi function?
Not what I would call "best": it is a Cody-specific hack.
error in case 1, undoable
% This is the same as problem 34.
Replace NaNs with the number that appears to its left in the row.
Given two strings, find the maximum overlap
Angle between two vectors
Whether the input is vector?
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
Make combination of two given matrices.
~~~~~~~ WAVE ~~~~~~~~~
Diagonal & Anti-Diagonal Matrix: Easy
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