Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 170. First N Perfect Squares

Created by @bmtran


Return the first N perfect squares


    input = 4;
    output = [ 1 4 9 16 ];

Problem Group

Solution Statistics

420 correct solutions 140 incorrect solutions
Last solution submitted on Nov 14, 2015

Problem Comments

Solution Comments