Create a column vector of n elements between a and b (both included) - MATLAB Cody - MATLAB Central

Problem 54860. Create a column vector of n elements between a and b (both included)

Difficulty:Rate
Given lower limit a and an upper limit b, create a column vector of n elements inclusive of a and b.
For example: a = 1, b = 4, n = 4
y = [1;2;3;4];

Solution Stats

65.71% Correct | 34.29% Incorrect
Last Solution submitted on May 06, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers23

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!