www.pudn.com > loopantenna.rar > viewer.m, change:2002-04-17,size:521b


function []=viewer(filename) 
%VIEWER Visualizes the structure - all Chapters 
%    
%   Usage:  viewer('plate.mat') or 
%           viewer('plate') or 
%           viewer plate 
% 
%   Copyright 2002 AEMM. Revision 2002/03/05 Chapter 2 
 
%Load the data 
load(filename); 
 
 
%Color=[0.75 0.75 0.75];  
Color='g'; 
 
Cut=find (t(4,:)>1); 
t(:,Cut)=[]; 
 
for m=1:length(t) 
    n=t(1:3,m); 
    X(1:3,m)=p(1,n)'; 
    Y(1:3,m)=p(2,n)'; 
    Z(1:3,m)=p(3,n)'; 
end 
g=fill3(X,Y,Z,Color); 
     
axis('equal') 
rotate3d on