<?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=Deemmer.m</id>
	<title>Deemmer.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=Deemmer.m"/>
	<link rel="alternate" type="text/html" href="https://wiki-pnb.eri.ucsb.edu/index.php?title=Deemmer.m&amp;action=history"/>
	<updated>2026-04-20T16:24:37Z</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=Deemmer.m&amp;diff=194&amp;oldid=prev</id>
		<title>128.111.101.185: Created page with '&lt;pre&gt; function deemmer(filename) %created by Erik Stassinos 4/11/2010 %this is a short function to remove the '^M' that is created at the end of %the line by matlabs write/print …'</title>
		<link rel="alternate" type="text/html" href="https://wiki-pnb.eri.ucsb.edu/index.php?title=Deemmer.m&amp;diff=194&amp;oldid=prev"/>
		<updated>2010-08-05T22:37:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;lt;pre&amp;gt; function deemmer(filename) %created by Erik Stassinos 4/11/2010 %this is a short function to remove the &amp;#039;^M&amp;#039; that is created at the end of %the line by matlabs write/print …&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 deemmer(filename)&lt;br /&gt;
%created by Erik Stassinos 4/11/2010&lt;br /&gt;
%this is a short function to remove the '^M' that is created at the end of&lt;br /&gt;
%the line by matlabs write/print function&lt;br /&gt;
%call in the file you want deemmed&lt;br /&gt;
&lt;br /&gt;
       &lt;br /&gt;
hs6t =0;&lt;br /&gt;
demfile = fopen(filename);&lt;br /&gt;
newfile = strcat('d',filename);&lt;br /&gt;
hs6test = filename(1,3)&lt;br /&gt;
if strncmp(hs6test,'h',1) ~= 1&lt;br /&gt;
cd ..&lt;br /&gt;
cd('final')&lt;br /&gt;
end&lt;br /&gt;
if strncmp(hs6test,'h',1) == 1&lt;br /&gt;
    hs6t =1&lt;br /&gt;
    cd('final')&lt;br /&gt;
end&lt;br /&gt;
newfile = fopen(newfile,'w+');&lt;br /&gt;
count = 0;&lt;br /&gt;
n=2;&lt;br /&gt;
linecount = 1;&lt;br /&gt;
&lt;br /&gt;
dmlength = 40;&lt;br /&gt;
if hs6t ==1&lt;br /&gt;
dmlength =55;&lt;br /&gt;
end&lt;br /&gt;
while linecount &amp;lt; dmlength%feof(demfile) ~= 1&lt;br /&gt;
    clear lineis&lt;br /&gt;
    line = fgets(demfile);&lt;br /&gt;
     lengthfirst = length(line);&lt;br /&gt;
 &lt;br /&gt;
     line = strread(line,'%s',lengthfirst)';&lt;br /&gt;
     lengthafterread = length(line);&lt;br /&gt;
    for i = 1:lengthafterread&lt;br /&gt;
        lineis{i,:} = line{:,i}';&lt;br /&gt;
    end&lt;br /&gt;
   % linechar  = char(lineis{:,1})' %ttttttttesssssssssssttttttt&lt;br /&gt;
    for t =1:(length(lineis) -1);&lt;br /&gt;
     q = lineis{t,:}';&lt;br /&gt;
     fprintf(newfile,'%s',q);&lt;br /&gt;
     fprintf(newfile,'%s',' ');&lt;br /&gt;
    end&lt;br /&gt;
    clear q&lt;br /&gt;
    q1 = lineis{length(lineis),:}';&lt;br /&gt;
    fprintf(newfile,'%s\n',q1);&lt;br /&gt;
    &lt;br /&gt;
   %line = line'&lt;br /&gt;
    count = count +1;&lt;br /&gt;
    location = ftell(demfile);&lt;br /&gt;
    linecount = linecount +1;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
while feof(demfile) ~= 1;&lt;br /&gt;
    nomline = fgets(demfile);&lt;br /&gt;
    fprintf(newfile,nomline);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
close all&lt;br /&gt;
pwd&lt;br /&gt;
cd .. &lt;br /&gt;
if strncmp(hs6test,'h',1) ~= 1&lt;br /&gt;
   &lt;br /&gt;
cd('processing')&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;[[deemmer]]&amp;lt;big&amp;gt;&lt;/div&gt;</summary>
		<author><name>128.111.101.185</name></author>
		
	</entry>
</feed>