<?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_text.m</id>
	<title>Read text.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_text.m"/>
	<link rel="alternate" type="text/html" href="https://wiki-pnb.eri.ucsb.edu/index.php?title=Read_text.m&amp;action=history"/>
	<updated>2026-04-06T17:31:40Z</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_text.m&amp;diff=215&amp;oldid=prev</id>
		<title>128.111.101.185: Created page with '&lt;pre&gt; % Title:        READ_TEXT.M % Date:         7/99 % Author:       SRW % Input:        filename % Output:       padded string array % Files:        auxillary files % Assumes:…'</title>
		<link rel="alternate" type="text/html" href="https://wiki-pnb.eri.ucsb.edu/index.php?title=Read_text.m&amp;diff=215&amp;oldid=prev"/>
		<updated>2010-08-05T23:54:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;lt;pre&amp;gt; % Title:        READ_TEXT.M % Date:         7/99 % Author:       SRW % Input:        filename % Output:       padded string array % Files:        auxillary files % Assumes:…&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;
% Title:        READ_TEXT.M&lt;br /&gt;
% Date:         7/99&lt;br /&gt;
% Author:       SRW&lt;br /&gt;
% Input:        filename&lt;br /&gt;
% Output:       padded string array&lt;br /&gt;
% Files:        auxillary files&lt;br /&gt;
% Assumes:      file formats, etc.&lt;br /&gt;
% Purpose:      reads a text file and returns padded string array&lt;br /&gt;
% Calls:        &lt;br /&gt;
% Uses:         who calls me?&lt;br /&gt;
% Example:      A=read_text(FILENAME)&lt;br /&gt;
% NOTES:        &lt;br /&gt;
&lt;br /&gt;
function [A]=read_text(filename)&lt;br /&gt;
A=[];&lt;br /&gt;
filename;&lt;br /&gt;
fid=fopen(filename,'r');&lt;br /&gt;
if fid==-1,&lt;br /&gt;
  return&lt;br /&gt;
end&lt;br /&gt;
while fid,&lt;br /&gt;
  nline=fgetl(fid);&lt;br /&gt;
  if nline==-1, break, end&lt;br /&gt;
  A=strvcat(A,nline);&lt;br /&gt;
end&lt;br /&gt;
fclose(fid);&lt;br /&gt;
return&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;[[read_text]]&amp;lt;big&amp;gt;&lt;/div&gt;</summary>
		<author><name>128.111.101.185</name></author>
		
	</entry>
</feed>