Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 170. First N Perfect Squares

Created by @bmtran

Description

Return the first N perfect squares

Example

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

Problem Group

Solution Statistics

319 correct solutions 90 incorrect solutions
Last solution submitted on Jul 09, 2014

Solution Comments