Insert first element into existing column vector...
Show older comments
Hello,
I am trying to just insert a 0 into my 48x1 double vector z, like this:
array = [0.0,z]
I keep getting:
Error using horzcat Dimensions of matrices being concatenated are not consistent.
What am I missing?
1 Comment
Stephen23
on 13 Jun 2018
@David Pesetsky: What shape do you expect the output to be, when you concatenate these together horizontally: [1x1,48x1]. The first has one row, the second has 48 rows... how many rows should the output have? How many columns?
Accepted Answer
More Answers (1)
alfiya riyas
on 26 Dec 2019
0 votes
In a column contains char vaues 'F' and 'M'.
i want to add values again 1 0 -1 in the same column using for loop
no of rows 6106 an the column no is 2
how to add these numbers usinf for ands if loop
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!