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 106382

Submitted on 4 Jul 2012

Incorrect

15Size
Leading solution size is 22.
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
 
%%
X='98765432109876543210987654321098765432109876543210987654321';
Y='98765432109876543210987654321098765432109876543210987654321';
Z='197530864219753086421975308642197530864219753086421975308642';
assert(isequal(dda(X,Y),Z))
Error: License checkout failed.
License Manager Error -5
Cannot find a license for Symbolic_Toolbox.
Make sure an INCREMENT line for Symbolic_Toolbox exists in the license file, and that the formatting of the license file is correct.
Troubleshoot this issue by visiting:
<a href="http://www.mathworks.com/support/lme/R2012a/5">http://www.mathworks.com/support/lme/R2012a/5</a>
Diagnostic Information:
Feature: Symbolic_Toolbox
License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2012a_licenses:/opt/mlsedu/matlab/R2012a/licenses/license.dat:/opt/mlsedu/matlab/R2012a/licenses
Licensing error: -5,0.
2
Fail
 
%%
X='6546468768680988454345';
Y='5757557542432424209808098908085353545657657';
Z='5757557542432424209814645376854034534112002';
assert(isequal(dda(X,Y),Z))
Error: License checkout failed.
License Manager Error -5
Cannot find a license for Symbolic_Toolbox.
Make sure an INCREMENT line for Symbolic_Toolbox exists in the license file, and that the formatting of the license file is correct.
Troubleshoot this issue by visiting:
<a href="http://www.mathworks.com/support/lme/R2012a/5">http://www.mathworks.com/support/lme/R2012a/5</a>
Diagnostic Information:
Feature: Symbolic_Toolbox
License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2012a_licenses:/opt/mlsedu/matlab/R2012a/licenses/license.dat:/opt/mlsedu/matlab/R2012a/licenses
Licensing error: -5,0.
3
Fail
 
%%
X='122';
Y='323';
Z='445';
assert(isequal(dda(X,Y),Z))
Error: License checkout failed.
License Manager Error -5
Cannot find a license for Symbolic_Toolbox.
Make sure an INCREMENT line for Symbolic_Toolbox exists in the license file, and that the formatting of the license file is correct.
Troubleshoot this issue by visiting:
<a href="http://www.mathworks.com/support/lme/R2012a/5">http://www.mathworks.com/support/lme/R2012a/5</a>
Diagnostic Information:
Feature: Symbolic_Toolbox
License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2012a_licenses:/opt/mlsedu/matlab/R2012a/licenses/license.dat:/opt/mlsedu/matlab/R2012a/licenses
Licensing error: -5,0.
4
Fail
 
%%
X='767678686868667868635435353545';
Y='465464643244242424249787979';
Z='768144151511912111059685141524';
assert(isequal(dda(X,Y),Z))
Error: License checkout failed.
License Manager Error -5
Cannot find a license for Symbolic_Toolbox.
Make sure an INCREMENT line for Symbolic_Toolbox exists in the license file, and that the formatting of the license file is correct.
Troubleshoot this issue by visiting:
<a href="http://www.mathworks.com/support/lme/R2012a/5">http://www.mathworks.com/support/lme/R2012a/5</a>
Diagnostic Information:
Feature: Symbolic_Toolbox
License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2012a_licenses:/opt/mlsedu/matlab/R2012a/licenses/license.dat:/opt/mlsedu/matlab/R2012a/licenses
Licensing error: -5,0.