Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
f = '2(x + y)';
y = expandf(f);
validatestring(y,{'2 ( x + y )'})
assert(isequal(y,'2 ( x + y )'),'Not that kind of expansion ;)')
ans =
2 ( x + y )
|
2 | Pass |
f = '2(x + y + z)';
y = expandf(f);
validatestring(y,{'2 ( x + y + z )'})
assert(isequal(y,'2 ( x + y + z )'),'Not that kind of expansion ;)')
ans =
2 ( x + y + z )
|
7264 Solvers
851 Solvers
How to find the position of an element in a vector without using the find function
2320 Solvers
323 Solvers
442 Solvers