<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki-pnb.eri.ucsb.edu/index.php?action=history&amp;feed=atom&amp;title=Excisit.m</id>
	<title>Excisit.m - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-pnb.eri.ucsb.edu/index.php?action=history&amp;feed=atom&amp;title=Excisit.m"/>
	<link rel="alternate" type="text/html" href="https://wiki-pnb.eri.ucsb.edu/index.php?title=Excisit.m&amp;action=history"/>
	<updated>2026-04-07T23:43:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://wiki-pnb.eri.ucsb.edu/index.php?title=Excisit.m&amp;diff=199&amp;oldid=prev</id>
		<title>128.111.101.185: Created page with '&lt;pre&gt; % EXCISEIT.M % Combines excise and exciseCol % Mfile to excise any row containing data less than -1000 from entire % matrix based on trapflags in col. % Modified to include…'</title>
		<link rel="alternate" type="text/html" href="https://wiki-pnb.eri.ucsb.edu/index.php?title=Excisit.m&amp;diff=199&amp;oldid=prev"/>
		<updated>2010-08-05T22:55:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;lt;pre&amp;gt; % EXCISEIT.M % Combines excise and exciseCol % Mfile to excise any row containing data less than -1000 from entire % matrix based on trapflags in col. % Modified to include…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
% EXCISEIT.M&lt;br /&gt;
% Combines excise and exciseCol&lt;br /&gt;
% Mfile to excise any row containing data less than -1000 from entire&lt;br /&gt;
% matrix based on trapflags in col.&lt;br /&gt;
% Modified to include low and high thresholds as with excise.m&lt;br /&gt;
% SRW 1998&lt;br /&gt;
% Created: JCS - someTime 1992 (:&lt;br /&gt;
% useage: exciseit(file,&amp;lt;col&amp;gt;,&amp;lt;LOWER_THRESHOLD&amp;gt;,&amp;lt;UPPER_THRESHOLD&amp;gt;)&lt;br /&gt;
% If col is &amp;lt;=0, or not specified then operates as excise.&lt;br /&gt;
% If col is &amp;gt;0, then operates as exciseCol with the addition of&lt;br /&gt;
% LOWER_THRESHOLD, UPPER_THRESHOLD.&lt;br /&gt;
&lt;br /&gt;
function [x,yrow,nrow]=exciseit(x,col,LOWER_THRESHOLD, UPPER_THRESHOLD)&lt;br /&gt;
if exist('UPPER_THRESHOLD') ~= 1,&lt;br /&gt;
  UPPER_THRESHOLD = 1e34;&lt;br /&gt;
end&lt;br /&gt;
if exist('LOWER_THRESHOLD') ~= 1,&lt;br /&gt;
  LOWER_THRESHOLD = -1000;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% $$$ if exist('col') ==1,&lt;br /&gt;
% $$$   if col&amp;lt;=0,&lt;br /&gt;
% $$$     col=[];&lt;br /&gt;
% $$$   end&lt;br /&gt;
% $$$ else&lt;br /&gt;
% $$$   col=[];&lt;br /&gt;
% $$$ end&lt;br /&gt;
                         %col set for all columns&lt;br /&gt;
if ~exist('col') | col==0,&lt;br /&gt;
  col=[];&lt;br /&gt;
                         %col set for all columns but those in original col&lt;br /&gt;
elseif col&amp;lt;0,&lt;br /&gt;
  col=-col;&lt;br /&gt;
  xcol=[1:size(x,2)];&lt;br /&gt;
  xcol(col)=[];&lt;br /&gt;
  col=xcol;&lt;br /&gt;
end&lt;br /&gt;
                         %look for error flags in any column&lt;br /&gt;
[m,n]=size(x);&lt;br /&gt;
if isempty(col),&lt;br /&gt;
  trap= (x &amp;lt; LOWER_THRESHOLD | x &amp;gt; UPPER_THRESHOLD | ...&lt;br /&gt;
      isnan(x) == 1 | isinf(x) == 1);&lt;br /&gt;
  if n &amp;gt; 1, &lt;br /&gt;
    trap=any(trap')';&lt;br /&gt;
  end&lt;br /&gt;
  nrow=find(trap);&lt;br /&gt;
else&lt;br /&gt;
                         %look for error flags in columns=[col]&lt;br /&gt;
  trap=zeros(m,n);&lt;br /&gt;
  trap(:,col) = (x(:,col) &amp;lt; LOWER_THRESHOLD | x(:,col)&amp;gt; UPPER_THRESHOLD | ...&lt;br /&gt;
      isnan(x(:,col)) == 1 | isinf(x(:,col)) == 1);&lt;br /&gt;
  nrow=find(any(trap'));&lt;br /&gt;
end&lt;br /&gt;
x(nrow,:)=[];&lt;br /&gt;
yrow=ones(m,1);&lt;br /&gt;
yrow(nrow)=0;&lt;br /&gt;
yrow=find(yrow);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;[[exciseit]]&amp;lt;big&amp;gt;&lt;/div&gt;</summary>
		<author><name>128.111.101.185</name></author>
		
	</entry>
</feed>