Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
17 Nov 2009 imagescnan.m v2.1 (Aug 2009) Same as IMAGESC but ignores NaNs. Author: Carlos Adrian Vargas Aguilera Vargas Aguilera, Carlos Adrian

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 Vargas Aguilera, Carlos Adrian

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 Vargas Aguilera, Carlos Adrian

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

 

23 Oct 2009 1-D to N-D robust smoothing SMOOTHN allows fast and robust smoothing in one and higher dimensions w/wo missing values Author: Damien Garcia Vargas Aguilera, Carlos Adrian

Welcome back!

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

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

13 Oct 2009 ISMEMBERF Floating-point ISMEMBER (i.e., with round-off tolerance) Author: Bruno Luong Vargas Aguilera, Carlos Adrian

This is a nice function, thanks bruno for sharing it. You all may check out my NUMCMP function too.

http://www.mathworks.com/matlabcentral/fileexchange/21190-numcmp-m

Cheers, Carlos

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

Hi Stefan, as far as I know, that functionality of the ZOOM and PAN functions does not work even on the first version of MATLAB v7.

One workaround is to edit "temporarly" the ZOOM/PAN function by adding the line
datetick('keeplimits')
at the end.

Or make your one function

function myzoom()
zoom
datetick('keeplimits')

and run
>> datetick
>> myzoom

Let me know if it works for you. Via email if possible.

Carlos

02 Oct 2009 GINPUT_ZOOM Graphical input from mouse with Zoom In/Out function Author: YiChung Vargas Aguilera, Carlos Adrian

Good function. you may check out also my GINPUT2 here at the FileExchange.

Cheers

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

Bugs fixed on v2.4 Roger! Carlos

31 Jul 2009 plots.m, plotses.m Plots each column of a matriz vs a single axis. Improvement of plotyyy. Author: Carlos Adrian Vargas Aguilera Vargas Aguilera, Carlos Adrian

To use 'reverse' in 'YDir' (or in 'XDIr' if 'left' o 'right' was used) in the included example use:

bt = 2; % 1=='bottom', 2=='top'
ylim = get(he,'YLim');
N = length(he);
for k = 1:N
 d = ylim{1}(1,bt)-ylim{k}(1,bt);
 ylim{k} = [ylim{1}(1,1)+d*(bt==2) ylim{1}(1,2)+d*(bt==1)];
end
set(he,{'YDir','YLim'},[repmat({'reverse'},N,1) ylim])

Cheers, the author

01 Jul 2009 sturm Second order ODE solver using linear finite elements. Author: Alexander Pletzer Vargas Aguilera, Carlos Adrian

Incredible simple program It solves the inhomogeneous sturm-liuville system and the homogeneous one (with EPS forcing) although not the eigenvalues.

Great job Alexander, please update it.

27 Jun 2009 COLORMAP and COLORBAR utilities (Sep 2009) MATLAB color utilities including COLORMAP join and interpolation; freeze and fit COLORBAR, etc. Author: Carlos Adrian Vargas Aguilera Vargas Aguilera, Carlos Adrian

There is a little bug on CMAPPING. Magenta 'm' color is colored as red 'r' in v1.0. Well...

Carlos

23 Jun 2009 Matrix to file Writes matrix to a file. Arguments: matrix and file-name Author: Nicolai Sten Vargas Aguilera, Carlos Adrian

here is another, ;)

http://www.mathworks.com/matlabcentral/fileexchange/10243

Carlos

11 Jun 2009 imagescnan.m v2.1 (Aug 2009) Same as IMAGESC but ignores NaNs. Author: Carlos Adrian Vargas Aguilera Vargas Aguilera, Carlos Adrian

Yes (kind of) but first, why would you like to do so if you can do it with PCOLOR? Well...

% Change line 359:
if aequal
%by:
if 0

% On empty line 398 write:
U = [U U(:,end); U(end,:) U(end,end)];
% Which is the trick. You may try other ways.

% Finally, change line 404:
'FaceColor','flat',...
% by:
'FaceColor','interp',...

% And that is it. Try imagescnan(peaks(5)) and you'll see the problem, which is that the interpolation is done on the edges and not on the middle of the faces (sort of). Maybe some day...

Saludos, Carlos Vargas

09 Jun 2009 imagescnan.m v2.1 (Aug 2009) Same as IMAGESC but ignores NaNs. Author: Carlos Adrian Vargas Aguilera Vargas Aguilera, Carlos Adrian

I guess not Yu-nung, the program may flip the image if your axes are decreasing, but never the ticks. Try a normal IMAGESC or send me your script. Carlos

22 Apr 2009 readline.m v3.0 (Jun, 2009) Reads the specified line(s) from a file. Author: Carlos Adrian Vargas Aguilera Vargas Aguilera, Carlos Adrian

Is not true Gabriel, it need to be like that so to be able to generate range from negative inputs. The author.

20 Mar 2009 smooth2a Smooths a 2D matrix using a mean filter over a user-defined rectangle. Ignores and preserves NaNs. Author: Greg Reeves Vargas Aguilera, Carlos Adrian

Nice code, my codes moving_average.m and ndnanfilter.m do similar jobs but are written very different! Regards...

11 Nov 2008 Wind_rose Wind rose of direction and intensity Author: M MA Vargas Aguilera, Carlos Adrian

Dear D S: you should write this kind of quenstions on the Newsreader (where many people will be glad to help you) or write directly to the author. Look at 5 statements here below. Carlos

24 Oct 2008 plots.m, plotses.m Plots each column of a matriz vs a single axis. Improvement of plotyyy. Author: Carlos Adrian Vargas Aguilera Vargas Aguilera, Carlos Adrian

You just need to use >> set(he(1),'Xlim',[0 1]), to modify the limits of the first axes from 0 to 1. Carlos

 

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