Assume I have d=[1 3 5 6 7 8 1 4 5 10], and e=zeros(5,10). I want to take only the first 4 elements of d and put them into the first row of e.
MATLAB: Fill row of matrix
fill matrixMATLAB
Related Question
- Sort matrix to get the row and column position of sorted matrix
- How to graph multiple points onto one graph
- How to find elements in an array based on a search from another array.
- How to modify a matrix to change the entries >=0 and multiply it by 5 AND to change the entries <0 and add 2 to those entries
Best Answer