Problem 2856. Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers
x = [1 2 3 4 5 6 7 8 9 10]
Solution Stats
Problem Comments
-
7 Comments
Show
4 older comments
Christian Schröder
on 16 Nov 2022
The merits of this problem as such nonwithstanding, your test suite is broken.
George Berken
on 28 Feb 2023
%% Yaz Majeed, please fix your Test 1.
assert(isequal(diff(create_row),ones(1,9)))
Christian Schröder
on 8 Jun 2025 at 8:32
Could a Cody admin please fix the test suite?
Solution Comments
Show commentsProblem Recent Solvers310
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2761 Solvers
-
406 Solvers
-
Find out total non zero element of matrix
277 Solvers
-
1369 Solvers
-
Matlab Basics - y as a function of x
508 Solvers
More from this Author28
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!