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

337 correct solutions 92 incorrect solutions
Last solution submitted on Sep 15, 2014

Problem Comments

Solution Comments