Compile this serie into a for loop please Global = zeros(nodos) Global(1,1)= K(1,1,1) Global(1,2)= K(1,2,1) Global(2,1)= K(2,1,1) Global(2,2)= K(2,2,1)+ K(1,1,2) Global(2,3)= K(1,2,2) Global(3,2)= K(2,1,2) Global(3,3)= K(2,2,2)+ K(1,1,3) Global(3,4)= K(1,2,3) Global(4,3)= K(2,1,3) Global(4,4)= K(2,2,3)+ K(1,1,4) Global(4,5)= K(1,2,4) Global(5,4)= K(2,1,4) Global(5,5)= K(2,2,4)+ K(1,1,5) Global(5,6)= K(1,2,5) Global(6,5)= K(2,1,5) Global(6,6)= ....
don't you know the for loop structure?? i can show you the for loop structure but you have to apply this with your data... for(condition, condition, if condition is true then statement) { statement/procedures; } Try applying with this ....if its not helpful enough then let me know... we will sort it out...
Join our real-time social learning platform and learn together with your friends!