Clear Filters
Clear Filters

How can I add a column at the start of my vector/Matrix?

1 view (last 30 days)
I have a row vector (1x9),
C = [1,2,3,4,5,6,7,8,9]
How can I add a column to make it 1x10 and so it reads:
C = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

Accepted Answer

David Hill
David Hill on 6 Apr 2022

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!