Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 68595

Submitted on 1 Apr 2012

Incorrect

14Size
Leading solution size is 10.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Fail
 
%%
assert(isequal(vect('x*x'),'x.*x'))
Error: Assertion failed.
2
Fail
 
%%
assert(isequal(vect('x^y'),'x.^y'))
Error: Assertion failed.
3
Fail
 
%%
assert(isequal(vect('x/z'),'x./z'))
Error: Assertion failed.
4
Fail
 
%%
assert(isequal(vect('(x*y)/z^w'),'(x.*y)./z.^w'))
Error: Assertion failed.