Rank: 622 based on 147 downloads (last 30 days) and 3 files submitted
photo

Andres

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Andres View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Jan 2010 Screenshot MuFFE - figure manager gui keep track of your figures and save them easily Author: Andres gui tools, figure manager, gui, figure, graphics export 25 0
17 Nov 2009 txt2mat fast and versatile ascii data import capable of handling large text files Author: Andres import, data import, ascii, csv, file, conversion 115 17
  • 4.77778
4.8 | 18 ratings
09 Jul 2009 Screenshot surfo workaround for surface lighting with OpenGL Author: Andres workaround, opengl, surf, surface, plot, light 7 1
  • 5.0
5.0 | 1 rating
Comments and Ratings by Andres View all
Updated File Comments Rating
02 Feb 2010 Convert TDMS (v2) Import a TDMS v2 file as a matlab object (ob). Author: Grant

I did not test convertTDMS.m extensively, but I'll give it 5 stars as it worked with my files without any problem. Thanks, Grant!

02 Dec 2009 PeakFinder Quickly finds local maxima (peaks) or minima (valleys) in a noisy signal. Author: Nate Yoder

The bugs were fixed quickly. Thanks Nate!

30 Nov 2009 PeakFinder Quickly finds local maxima (peaks) or minima (valleys) in a noisy signal. Author: Nate Yoder

I was happily using peakfinder until I had severe trouble with a dataset beginning with repeated values.
I've boiled it down to a short example:

t = [49 49 54 49 -57 46 -96 -10 39 0];
startI1 = 1;
[Loc1, Peak1] = peakfinder(t(startI1:end),20);
startI2 = 2;
[Loc2, Peak2] = peakfinder(t(startI2:end),20);

figure
plot(t,'b.-')
hold on
plot(Loc1-1+startI1,Peak1,'ro')
plot(Loc2-1+startI2,Peak2,'go')

Problems:
1) The first call returns a wrong result (Loc1 = 2, Peak1 = 49).
2) The second call returns all three peaks, but the last one appears twice (Loc2 = [2 5 8 8].', Peak2 = [54 46 39 39].').

I hope these issues can be fixed as peakfinder works promisingly fast.
A minor suggestion: if the input is a row vector the output should be a row vector, too.

Regards
Andres

11 Nov 2009 txt2mat fast and versatile ascii data import capable of handling large text files Author: Andres

@ Leonard
Thanks for pointing to the version number issue with the MCR (and that part of code you mention should have been replaced anyhow...). I've just sent you an email regarding a possible solution; if it got lost, please use the 'Contact Author' link on my author page.
Regards
Andres

30 Jul 2009 addaxis Add multiple y-axes to plots. zoomable with zoom modification. Author: Harry Lee

A good multiple y-axis tool - it could be a bit more customizable. Use linkzoom ( http://www.mathworks.com/matlabcentral/fileexchange/21414 ) to avoid the zoom modification, or use Carlos Adrian's derivative (not tested yet).

Comments and Ratings on Andres' Files View all
Updated File Comment by Comments Rating
04 Jan 2010 txt2mat fast and versatile ascii data import capable of handling large text files Author: Andres Pavan

Superb function. Worked without a problem. Great stuff.
Thanks Andres

23 Dec 2009 txt2mat fast and versatile ascii data import capable of handling large text files Author: Andres Pujante, achus

Great function, you saved me a lot of time, thank you very much
Then I used your function to simplify my own case

16 Nov 2009 txt2mat fast and versatile ascii data import capable of handling large text files Author: Andres Peer, Stefanie

11 Nov 2009 txt2mat fast and versatile ascii data import capable of handling large text files Author: Andres Andres

@ Leonard
Thanks for pointing to the version number issue with the MCR (and that part of code you mention should have been replaced anyhow...). I've just sent you an email regarding a possible solution; if it got lost, please use the 'Contact Author' link on my author page.
Regards
Andres

09 Nov 2009 txt2mat fast and versatile ascii data import capable of handling large text files Author: Andres Leonard

txt2mat is excellent by being very straightforward in it's implementation. Could be the defacto standard within Matlab. Thanks Andreas for this.

If you are considering compiling a standalone application and deploying it using the MCR, you may want to consider the following:
I did not encounter any errors using this .m file while using it as long as MATLAB was installed on my machine (ver 7.5, BTW).
When deploying my executable to another machine and using the MCR (ver 7.7), the command line indicated the following:

Too many objects requested. Most likely cause is missing [ ] around left hand side that has a comma separated list expansion.

Error in ==> txt2mat at 519

515 %% Definitions
516
517 % find out matlab version as a decimal, up to the second dot:
518 v = ver('matlab');
519 vs= v.Version;
520 vsDotPos = [strfind(vs,'.'), Inf, Inf];
521 vn= str2double(vs(1:min(numel(vs),vsDotPos(2)-1)));

The .m file halted execution of my program because it was looking for a version # for MATLAB, which was not installed on the target machine. I patched the code by determining the matlab ver and editing the txt2mat.m as follows:

518 %v = ver('matlab');
519 vs = 7.5; %vs= v.Version;
520 vsDotPos = [strfind(vs,'.'), Inf, Inf];
521 vn= str2double(vs(1:min(numel(vs),vsDotPos(2)-1)));

Maybe it's possible to check for 'Matlab' on the target machine and/or the MCR and then handle this line appropriately.

Regards,
Len

Top Tags Applied by Andres
ascii, conversion, csv, data, data import
Files Tagged by Andres View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Jan 2010 Screenshot MuFFE - figure manager gui keep track of your figures and save them easily Author: Andres gui tools, figure manager, gui, figure, graphics export 25 0
17 Nov 2009 txt2mat fast and versatile ascii data import capable of handling large text files Author: Andres import, data import, ascii, csv, file, conversion 115 17
  • 4.77778
4.8 | 18 ratings
09 Jul 2009 Screenshot surfo workaround for surface lighting with OpenGL Author: Andres workaround, opengl, surf, surface, plot, light 7 1
  • 5.0
5.0 | 1 rating
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com