1 function hexa_plot(X1,X2,K)
3 % plot matrix K on nodes X
5 % X1 size (3,m), node coordinates
6 % X2 size (3,n), node coordinates
11 if any([m,n]~=size(K))
18 symm = norm(K-K','fro')<tol;
21 % plot3(X(1,j),X(2,j),X(3,j),'o','Linewidth',ml); hold on
23 for k=1:3,xij{k}=[X1(k,i),X2(k,j)];end
25 s = K(i,j)/sqrt(K(i,i)*K(j,j));
27 s = K(i,j)/norm([K(:,j);K(i,:)'],inf);
30 plot3(xij{:},'--k','Linewidth',s*ml); hold on
32 plot3(xij{:},'--r','Linewidth',-s*ml); hold on