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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Search Solutions

What is Size?

Size refers to the number of nodes in a parse tree. Generally speaking, you can think of size as code length.

Incorrect

0 Comments

Incorrect

0 Comments

78Size

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

99Size

0 Comments

130Size

0 Comments

48Size

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

34Size

0 Comments

25Size

0 Comments

77Size

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

55Size

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

41Size

0 Comments

77Size

0 Comments

Incorrect

0 Comments

Incorrect

1 Comment

1 Comment

Harish Maradana
on 13 Mar 2013

function y = pow2_sumofdigits(x)
number = sym(2^x);
n = char(number);
y = 0;
for i = 1:length(n)
y = y + str2double(n(i));
end
end
this code gives exact results on my mechine but not work in cody show error
Error: License checkout failed.
License Manager Error -5
Cannot find a license for Symbolic_Toolbox.
Troubleshoot this issue by visiting:
<a href="http://www.mathworks.com/support/lme/R2013a/5">http://www.mathworks.com/support/lme/R2013a/5</a>
Diagnostic Information:
Feature: Symbolic_Toolbox
License path: 13501@10.206.97.41:13501@10.10.207.33:/tmp/matlabpref/.matlab/R2013a_licenses:/opt/mlsedu/matlab/R2013a/licenses/license.dat:/opt/mlsedu/matlab/R2013a/licenses
Licensing error: -5,0.
please help me ...........

Incorrect

0 Comments

98Size

0 Comments

Incorrect

0 Comments

25Size

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

24Size

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

180Size

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

29Size

0 Comments

Incorrect

0 Comments

Incorrect

0 Comments

32Size

0 Comments

Incorrect

0 Comments