Cody

# Problem 542. Vectorizing, too easy or too hard?

Solution 1739353

Submitted on 28 Feb 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
assert(isequal(vect('x*x'),'x.*x'))

Error in solution Line: 5 Column: 18 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

2   Fail
assert(isequal(vect('x^y'),'x.^y'))

Error in solution Line: 5 Column: 18 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

3   Fail
assert(isequal(vect('x/z'),'x./z'))

Error in solution Line: 5 Column: 18 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

4   Fail
assert(isequal(vect('(x*y)/z^w'),'(x.*y)./z.^w'))

Error in solution Line: 5 Column: 18 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.