Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
s = '508-647-7000, (508) 647-7001, 617-555-1212, 1-800-323-1234, 704 555-1212';
a = {'508','617','704','800'};
assert(isequal(refcn(s),a))
d =
'508'
d =
'508' '508'
d =
'508' '508' '617'
d =
'508' '508' '617' '800'
d =
'508' '508' '617' '800' '704'
ans =
'508' '617' '704' '800'
|
2 | Pass |
%%
s = '212-657-0260; (888) 647-7001; 336 565-1212; +1-800-323-1234';
a = {'212','336','800','888'};
assert(isequal(refcn(s),a))
d =
'212'
d =
'212' '888'
d =
'212' '888' '336'
d =
'212' '888' '336' '800'
ans =
'212' '336' '800' '888'
|
1091 Solvers
1261 Solvers
Split a string into chunks of specified length
475 Solvers
Basics: 'Find the eigenvalues of given matrix
322 Solvers
Find out missing number from a vector of 9 elements
245 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!