Given n, find the sum of the digits that make up 2^n.
Example:
Input n = 7 Output b = 11
since 2^7 = 128, and 1 + 2 + 8 = 11.
Find all elements less than 0 or greater than 10 and replace them with NaN
10475 Solvers
472 Solvers
Create a cell array out of a struct
132 Solvers
Make a random, non-repeating vector.
358 Solvers
433 Solvers
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply Today