A = [0 1 1 1 ;0 0 0 1 ;0 1 0 1 ;0 0 0 0];N=4; C=2;rho=0.1;B= zeros(N,C);a=[1 0;0 1;1 1;0 1]for k=1:N-1 B(k+1) = B(k) + (0.5 * rho* a);end
MATLAB: I am getting an error while executing a short code to update a matrix, In an assignment A(I) = B, the number of elements in B and I must be the same. Er
??? in an assignment a(i) = bthe number of elements in b and i must be the same. error
Related Question
- Changing Matrix value at odd position of row with reference to a certain column
- How to write out homogeneous equation
- I want to take each row in matrix
- Cannot get the same result in GA as I get in linprog
- Problem in code for 16 qam
- Trying to iterate through a vector changing the value of 1/5 in each iteration
Best Answer