Rank: 936 based on 74 downloads (last 30 days) and 5 files submitted
photo

Stefan Eireiner

E-mail
Company/University
Siemens VDO

Personal Profile:

I'm working as software developer at Siemens VDO on test bench automation and test bench management.

Professional Interests:

 

Watch this Author's files

 

Files Posted by Stefan View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 Apr 2006 fakebar displays progressing waitbars until you press cancel Author: Stefan Eireiner gui tools, example, fakebar waitbar rando... 0 1
  • 5.0
5.0 | 1 rating
12 Apr 2006 searchInFile searches blockwise for a string or binary pattern in a file Author: Stefan Eireiner path, directories, files, file search binary st... 1 0
11 Apr 2006 IsUnicode ISUNICODE Checks if and which unicode header a file has. Author: Stefan Eireiner data import, data export, unicode utf 8 16 32 h... 0 0
11 Apr 2006 unicode2ascii Converts unicode endcoded files to ASCII encoded files Author: Stefan Eireiner data import, data export, unicode utf ascii ans... 8 3
  • 5.0
5.0 | 3 ratings
24 May 2004 RLE de/encoding A simple m-file which (de)compresses your data using RLE. Author: Stefan Eireiner coding, coding theory, communications, run length encoding, rle, data compression 65 13
  • 4.66667
4.7 | 12 ratings
Comments and Ratings on Stefan's Files View all
Updated File Comment by Comments Rating
19 Dec 2011 RLE de/encoding A simple m-file which (de)compresses your data using RLE. Author: Stefan Eireiner MOUSSA, OLFA

thx

28 Sep 2010 unicode2ascii Converts unicode endcoded files to ASCII encoded files Author: Stefan Eireiner Patterson, Mark

Works well. The included isunicode function does not correctly release the file handle when it returns. The attached diff correct this.

--- isunicode.m 2010-09-20 18:25:56 +0000
+++ isunicode.m 2010-09-27 21:11:21 +0000
@@ -13,30 +13,22 @@
%
% (c) Version 1.0 by Stefan Eireiner (<a
href="mailto:stefan.eireiner@siemens.com?subject=isunicode">stefan.eirei
ner@siemens.com</a>)
% last change 10.04.2006
-%
-% Downloaded from:
-%
http://www.mathworks.com/matlabcentral/fileexchange/10686-unicode2ascii.
-%
-% See also: unicode2ascii.

isuc = false;
-if(nargin == 2)
- if(strcmpi(filename, 'string'))
- firstLine = varargin{1}(1:4);
+if nargin == 2 && strcmpi(filename, 'string')
+ firstLine = varargin{1}(1:4);
+else
+ fileInfo = dir(filename);
+ if(fileInfo.bytes < 4) % a unicode file incl. header can't be
smaller than 4 bytes if it shall display at least one char.
+ return;
    end
-end
-
-if(~exist('firstLine', 'var'))
    fin = fopen(filename,'r');
    if (fin == -1) %does the file exist?
        error(['File ' filename ' not found!'])
        return;
    end
- fileInfo = dir(filename);
- if(fileInfo.bytes < 4) % a unicode file incl. header can't be
smaller than 4 bytes if it shall display at least one char.
- return;
- end
    firstLine = fread(fin,4)';
+ fclose(fin) ;
end

% assign all possible headers to variables
@@ -58,7 +50,3 @@
elseif(strfind(firstLine, utf32leheader) == 1)
        isuc = 5;
end
-
-if(~exist('firstLine', 'var'))
- fclose(fin);
-end

31 Jan 2010 unicode2ascii Converts unicode endcoded files to ASCII encoded files Author: Stefan Eireiner Sergey

Thanks! It's clean, fast, and most important - works )

14 Dec 2009 unicode2ascii Converts unicode endcoded files to ASCII encoded files Author: Stefan Eireiner Gordon

combined this with csvimport and it worked a treat

09 Dec 2009 RLE de/encoding A simple m-file which (de)compresses your data using RLE. Author: Stefan Eireiner prasad, Ram
Top Tags Applied by Stefan
data export, data import, coding, coding theory, communications
Files Tagged by Stefan View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
13 Apr 2006 fakebar displays progressing waitbars until you press cancel Author: Stefan Eireiner gui tools, example, fakebar waitbar rando... 0 1
  • 5.0
5.0 | 1 rating
12 Apr 2006 searchInFile searches blockwise for a string or binary pattern in a file Author: Stefan Eireiner path, directories, files, file search binary st... 1 0
11 Apr 2006 IsUnicode ISUNICODE Checks if and which unicode header a file has. Author: Stefan Eireiner data import, data export, unicode utf 8 16 32 h... 0 0
11 Apr 2006 unicode2ascii Converts unicode endcoded files to ASCII encoded files Author: Stefan Eireiner data import, data export, unicode utf ascii ans... 8 3
  • 5.0
5.0 | 3 ratings
24 May 2004 RLE de/encoding A simple m-file which (de)compresses your data using RLE. Author: Stefan Eireiner coding, coding theory, communications, run length encoding, rle, data compression 65 13
  • 4.66667
4.7 | 12 ratings

Contact us at files@mathworks.com