m=3; A=[ 1 1 0]; B=[0 1 0];D=B-A; d1=m*A; for X=0:1:m C=d1+D*X end
MATLAB: How to store the matrix from for loop
store matrix
Related Question
- Matric “c” and “d” out of for loop and c row matrix corresponding to minimum distance
- I like to write a (35*35) matrix in matlab but the following error text will appear : Error in MuPAD command: DOUBLE cannot convert the input expression into a double array.
- How to compute frequency of rows for submatrices
- How to convert cell into array of floating point numbers only
Best Answer