Hello,
I am having matrix G of size 30 x 30 and other matrix L of size m x 2 where m <30, I want to update the values in G based on the values in L
for example L=[1,2;3,4;5,6;7,8;9,10]
L =
1 2 3 4 5 6 7 8 9 10
I want to update values of G(1,2), G(3,4)…. i tried sub2ind(), but i am getting "out of range subscript error" how do i resolve this?
Thanking you in advance
Best Answer