<?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=Read_strip.m</id>
	<title>Read strip.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=Read_strip.m"/>
	<link rel="alternate" type="text/html" href="https://wiki-pnb.eri.ucsb.edu/index.php?title=Read_strip.m&amp;action=history"/>
	<updated>2026-04-08T13:01:26Z</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=Read_strip.m&amp;diff=184&amp;oldid=prev</id>
		<title>128.111.101.185: Created page with '&lt;pre&gt; function [matrix,head]=read_strip(file) % function [matrix,head]=read_strip(file) %  %  read a bbopstrip file  % open file %cd(pb); pwdinreadstrip = pwd %cd('processing') %…'</title>
		<link rel="alternate" type="text/html" href="https://wiki-pnb.eri.ucsb.edu/index.php?title=Read_strip.m&amp;diff=184&amp;oldid=prev"/>
		<updated>2010-08-03T00:00:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;lt;pre&amp;gt; function [matrix,head]=read_strip(file) % function [matrix,head]=read_strip(file) %  %  read a bbopstrip file  % open file %cd(pb); pwdinreadstrip = pwd %cd(&amp;#039;processing&amp;#039;) %…&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;
function [matrix,head]=read_strip(file)&lt;br /&gt;
% function [matrix,head]=read_strip(file)&lt;br /&gt;
% &lt;br /&gt;
%  read a bbopstrip file&lt;br /&gt;
&lt;br /&gt;
% open file&lt;br /&gt;
%cd(pb);&lt;br /&gt;
pwdinreadstrip = pwd&lt;br /&gt;
%cd('processing')&lt;br /&gt;
%file&lt;br /&gt;
fid=fopen(file,'r')&lt;br /&gt;
if (fid==-1), &lt;br /&gt;
  matrix=[];&lt;br /&gt;
  head=[];&lt;br /&gt;
  return&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% read first line to initialize loop&lt;br /&gt;
fgets(fid); length_header=0;&lt;br /&gt;
&lt;br /&gt;
% loop to count header lines&lt;br /&gt;
while (ans(1:1)=='*' | ans(1:1)=='#' | ans(1:1)=='/' | ans(1:1)=='%' | ans(1:1)=='!'| ans(1:1)==' ' &amp;amp; ans~=-1)&lt;br /&gt;
	fgets(fid);&lt;br /&gt;
	length_header=length_header+1;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
% done with file&lt;br /&gt;
fclose(fid);&lt;br /&gt;
&lt;br /&gt;
% if you want to remove the # character and enumerate channels&lt;br /&gt;
%         head=head(:,2:size(head,2)); % remove # character&lt;br /&gt;
%         head=[reshape(sprintf('%3d   ',0:size(head,1)-1),6,size(head,1))', head];&lt;br /&gt;
&lt;br /&gt;
% call file_read&lt;br /&gt;
%cd ..&lt;br /&gt;
&lt;br /&gt;
[matrix,head]=file_read(file,length_header);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;[[read_strip]]&amp;lt;big&amp;gt;&lt;/div&gt;</summary>
		<author><name>128.111.101.185</name></author>
		
	</entry>
</feed>