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

452 correct solutions 152 incorrect solutions
Last solution submitted on Jul 29, 2016

Problem Comments

Solution Comments