MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test
Opportunities for recent engineering grads.
New to MATLAB?
Problem 189. Sum all integers from 1 to 2^n
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
x = 7;
y_correct = 8256;
Error: You may not use the command(s) eval in your code
x = 10;
y_correct = 524800;