gistlib
main.mK = [12, -4, -2, 0; -4, 10, -3, 1; -2, -3, 5, -1; 0, 1, -1, 6]; row_indices = [1, 3]; col_indices = [2, 4]; selected_elements = K(row_indices, col_indices); disp(selected_elements); 183 chars7 lines
K = [12, -4, -2, 0; -4, 10, -3, 1; -2, -3, 5, -1; 0, 1, -1, 6]; row_indices = [1, 3]; col_indices = [2, 4]; selected_elements = K(row_indices, col_indices); disp(selected_elements);
gistlibby LogSnag