Rank: 16 based on 1023 downloads (last 30 days) and 34 files submitted
photo

Carlos Adrian Vargas Aguilera

E-mail
Company/University
Universidad de Guadalajara, México
Lat/Long
20.6583480834961, -103.326065063477

Personal Profile:

Ph.D. candidate on Physical Oceanography at CICESE, Mexico. Currently working on internal waves in the ocean and playing with Matlab as a hobby... isn't it fun?

Professional Interests:
physical oceanography, spectral analysis

 

Watch this Author's files

 

Files Posted by Carlos Adrian View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Nov 2009 Screenshot quiver2.m v1.2 (Nov 2009) Same as QUIVER, QUIVER3 or FEATHER but with colored, normalized, widened and ARROW's! Author: Carlos Adrian Vargas Aguilera arrow, quiver, feather, quiver3, vector field 20 1
  • 5.0
5.0 | 1 rating
12 Nov 2009 Screenshot ginput2.m v3.1 (Nov 2009) Same as GINPUT but with ZOOM, PAN and (optionally) PLOT and image SCALE/GEOREFERENCE! Author: Carlos Adrian Vargas Aguilera georeference, ginput, digitize, zoom, double click, doble click 51 4
  • 4.75
4.8 | 4 ratings
12 Nov 2009 Screenshot der.m v1.0 (Nov, 2009) Estimates first derivative of an array by using POLYFIT locally on each point ignoring NaNs! Author: Carlos Adrian Vargas Aguilera diff, gradient, derivative, integral, smooth, polyfit 4 2
30 Oct 2009 Screenshot saveascii.m v6.2 (Oct 2009) Save or display a matrix with given precision, delimiter or format for each (or every) column! Author: Carlos Adrian Vargas Aguilera ascii, sprintf, save matrix, data import, save, fprintf 21 18
  • 4.4
4.4 | 15 ratings
02 Oct 2009 Screenshot velocity_triangulation.m v1.0 (Sep 2009) Triangulates velocity from a 2D planar wave. Author: Carlos Adrian Vargas Aguilera gps, wave, velocity, coordinates, measurement, triangulation 4 0
Comments and Ratings by Carlos Adrian View all
Updated File Comments Rating
17 Nov 2009 imagescnan.m v2.1 (Aug 2009) Same as IMAGESC but ignores NaNs. Author: Carlos Adrian Vargas Aguilera

Yes Olivier, or with:
>> imagesc(U,'AlphaData',~isnan(U),'AlphaDataMapping','none')
I just wanted to be able to paint NaNs with specifyc color without modifying the axes color.
Probably I should include this "transparent" option. Thank you!

Carlos

12 Nov 2009 % MATLAB Comment Stripping Toolbox A small collection of utilities for stripping MATLAB comments from strings and files. Author: Peter J. Acklam

Oh, besides of the NOT ignored lines after "...", also grouped comments are NOT ignored:
%{
bla
bla
%}
Carlos

12 Nov 2009 % MATLAB Comment Stripping Toolbox A small collection of utilities for stripping MATLAB comments from strings and files. Author: Peter J. Acklam

Great functions. Only my comments after a three points were left!

 

23 Oct 2009 Robust spline smoothing for 1-D to N-D data SMOOTHN allows automatized and robust smoothing in one and higher dimensions w/wo missing values Author: Damien Garcia

Welcome back!

20 Oct 2009 List files with specified suffix %GETFILELIST generates a list of files with specified suffix under topDir. Author: Shiquan Wang

You may use LS with wildcard '*' and that's it.

Comments and Ratings on Carlos Adrian's Files View all
Updated File Comment by Comments Rating
03 Feb 2012 imagescnan.m v2.1 (Aug 2009) Same as IMAGESC but ignores NaNs. Author: Carlos Adrian Vargas Aguilera Trevino, Mario

gracias!

17 Jan 2012 linkzoom.m v1.3 (Aug 2009) Links the ZOOM and PAN regions of different axes. Author: Carlos Adrian Vargas Aguilera happy

Hi Carlos. I like your function, but it is not working 'correctly' when using a plot with more than two y-axes, like produced with the function 'ploty4' (can be downloaded on file exchange). Here the plots in different axes are drawn away from each other. Suppose that two lines y1(x) and y2(x) are crossing at a special point (x0,y1(x0)=y2(x0)). If I zoom on the plot in the axes of y1 at the point, (x0,y1(x0)) The lines will not cross anymore. 'linkzoom' moves the axes differently.

21 Dec 2011 der.m v1.0 (Nov, 2009) Estimates first derivative of an array by using POLYFIT locally on each point ignoring NaNs! Author: Carlos Adrian Vargas Aguilera Clark, Thomas

*** Amendment

Sorry, I cut and pasted the wrong code above.

Code to produce error is:

F = rand(14,14,14);
h = [1 1 1];
Wn = 11;
Deg = 3;
Pad = 'replicate';
[dF1,dF1std] = der(F,h(1),Wn*h(1),Deg,Pad,1);

??? Error using ==> vertcat
CAT arguments dimensions are not consistent.

Error in ==> der at 304
T = [interp1((1:2)',T(1:2,:) ,repmat((-W2+1:0)' ,1,n),[],'extrap'); T;

Error in ==> tryDer at 45
[dF1,dF1std] = der(F,h(1),Wn*h(1),Deg,Pad,1);

Kind regards

Tom

21 Dec 2011 der.m v1.0 (Nov, 2009) Estimates first derivative of an array by using POLYFIT locally on each point ignoring NaNs! Author: Carlos Adrian Vargas Aguilera Clark, Thomas

Hi Carlos,

This is potentially awesome!

However, I've got two concerns:

1. There may be a bug for some inputs. I tried to get derivative (in the columnar direction) of a lot of vectors in a 3D array, and get:
F = rand(10,10,10);
h = [1 1 1];
Wn = 9;
Deg = 2;
Pad = 'replicate';
[dF1,dF1std] = der(F,h,Wn*h(1),Deg,Pad,1);

??? Error using ==> reshape
To RESHAPE the number of elements must not change.
Error in ==> polyGradient>der at 245
  T = reshape(permute(DT,[DIM 1:DIM-1 DIM+1:Ndim]),m,n);

2. The mlint code analyser highlights a possibly ill-conditioned use of inv( ) at line 365. Is it justified, or is in not possible to use \ for this computation?

Thanks so far, it's looking like this will be very useful, even if only limited to 1D.

Kind regards

Tom

14 Dec 2011 tlabel.m v2.6.1 (Sep 2009) Same as DATETICK but with ZOOM, PAN, LINKAXES and more! Author: Carlos Adrian Vargas Aguilera Patrick

Hi Carlos,
I have a problem with non working tlabel when opening a saved figure (.fig): the dateticks are not changing when I zoom.
I tried to load before tlabel in the matlab path but it did not helped.
Did you heard of the problem ?

All the best,

Olivier

Top Tags Applied by Carlos Adrian
signal processing, smooth, spectral analysis, annotation, colorbar
Files Tagged by Carlos Adrian View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Nov 2009 Screenshot quiver2.m v1.2 (Nov 2009) Same as QUIVER, QUIVER3 or FEATHER but with colored, normalized, widened and ARROW's! Author: Carlos Adrian Vargas Aguilera arrow, quiver, feather, quiver3, vector field 20 1
  • 5.0
5.0 | 1 rating
12 Nov 2009 Screenshot ginput2.m v3.1 (Nov 2009) Same as GINPUT but with ZOOM, PAN and (optionally) PLOT and image SCALE/GEOREFERENCE! Author: Carlos Adrian Vargas Aguilera georeference, ginput, digitize, zoom, double click, doble click 51 4
  • 4.75
4.8 | 4 ratings
12 Nov 2009 Screenshot der.m v1.0 (Nov, 2009) Estimates first derivative of an array by using POLYFIT locally on each point ignoring NaNs! Author: Carlos Adrian Vargas Aguilera diff, gradient, derivative, integral, smooth, polyfit 4 2
30 Oct 2009 Screenshot saveascii.m v6.2 (Oct 2009) Save or display a matrix with given precision, delimiter or format for each (or every) column! Author: Carlos Adrian Vargas Aguilera ascii, sprintf, save matrix, data import, save, fprintf 21 18
  • 4.4
4.4 | 15 ratings
02 Oct 2009 Screenshot velocity_triangulation.m v1.0 (Sep 2009) Triangulates velocity from a 2D planar wave. Author: Carlos Adrian Vargas Aguilera gps, wave, velocity, coordinates, measurement, triangulation 4 0

Contact us at files@mathworks.com