Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
input_str= 'This is a test sentence'
Start_string= ' is'
End_string= 'sentence'
include_se=1
output_str= {' is a test sentence'}
assert(isequal(extract_function(input_str,Start_string,End_string, include_se),output_str))
input_str =
'This is a test sentence'
Start_string =
' is'
End_string =
'sentence'
include_se =
1
output_str =
1×1 cell array
{' is a test sentence'}
|
2 | Pass |
input_str= 'This is a test sentence'
Start_string= ' is'
End_string= 'sentence'
include_se=0
output_str={' a test '}
assert(isequal(extract_function(input_str,Start_string,End_string, include_se),output_str))
input_str =
'This is a test sentence'
Start_string =
' is'
End_string =
'sentence'
include_se =
0
output_str =
1×1 cell array
{' a test '}
|
3 | Pass |
input_str= 'Right now!I said RIGHT NOW!'
Start_string= 'now!'
End_string= '!'
include_se=0
output_str={'I said RIGHT NOW'}
assert(isequal(extract_function(input_str,Start_string,End_string, include_se),output_str))
input_str =
'Right now!I said RIGHT NOW!'
Start_string =
'now!'
End_string =
'!'
include_se =
0
output_str =
1×1 cell array
{'I said RIGHT NOW'}
|
1159 Solvers
Increment a number, given its digits
562 Solvers
Test if a Number is a Palindrome without using any String Operations
181 Solvers
1143 Solvers
325 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!