the unitMatlab code:%Connection information: number, local node 1 number, local node 2 number, cross sectional area, modulus of elasticityele=[1 1 2 A E;2 2 3 A E;33 4 A E;4 1 4 A E;5 1 3 A
例子: MATLAB% MATLAB code for find the indices of% all the non-zero elements present in the 3-D arrayx = [1 9 0; 3 -1 0; 0 0 7]% find() will get the indices of the elements% and the