Rank: 6 based on 1816 downloads (last 30 days) and 35 files submitted
Personal Profile:

Matt holds a master's degree in Mechanical Engineering, and a bachelor's degree in Physics. He is now employed at the Idaho National Lab, where he works in fuels characterization. His main work is to develop new material properties measurement techniques, for which he uses Matlab daily. He enjoys his family, fishing (that's a 17 inch brown) and the great Idaho countryside.

Professional Interests:
Matlab, COMSOL, Thermal characterization.

 

Watch this Author's files

 

Files Posted by Matt View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
10 Jun 2010 Screenshot CHECKVARS Checks for function masking by variables in an M-File. Author: Matt Fig mask, masking, function, variables 18 1
29 Mar 2010 Screenshot NFACTORK Find all factorings of N which have K elements. Author: Matt Fig partition, divisors, factor, bell number, combinatorics, primes 10 5
  • 4.0
4.0 | 2 ratings
27 Jan 2010 Screenshot COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig multichoose, nchoosek, perms, combinations, set, permutations 71 10
  • 5.0
5.0 | 6 ratings
27 Jan 2010 Published M-Files 41 Complete GUI Examples 41 working GUIs to read and learn. Author: Matt Fig example, gui, files, guide, potw, how to 1138 42
  • 4.94118
4.9 | 36 ratings
24 Jun 2009 Screenshot EXPAND Replicate and tile each element of an array. Author: Matt Fig expand, tile, repmat, tiling, replicate, expansion 23 4
  • 5.0
5.0 | 1 rating
Comments and Ratings by Matt View all
Updated File Comments Rating
16 Jun 2010 cell2char Function to convert a cell array of strings into a character array. Author: Tonatiuh Pena Centeno

I see, your code handles cells like this:

C = {'poss';'pess';'asdf';NaN;44;pi;'cookie'}

So it is the description you give that needs fixing. It does more than convert the contents of a cell array of strings. It converts the contents of a cell array of strings and/or numbers. However, couldn't your entire algorithm be replaced with this?

S = char(cellfun(@(x) num2str(x),C,'Un',0))

16 Jun 2010 cell2char Function to convert a cell array of strings into a character array. Author: Tonatiuh Pena Centeno

Maybe I missed it, but what does CELL2CHAR(C) do that CHAR(C) does not do? And CHAR is a built-in!

10 Jun 2010 CHECKVARS Checks for function masking by variables in an M-File. Author: Matt Fig

It was brought to my attention that there are a few short-comings in the file. The file will be updated shortly.

21 May 2010 Anti-diagonal matrix traversal This function allows you to traverse a square matrix along the anti-diagonal. Author: Loïc

As it is, you have some deficiencies. There is no H1 line. The help is non-standard in its location. There is no input checking: if the function is for square matrices then you should check to see if the input is square. Your algorithm works well, except you cripple the speed by not pre-allocating your return arrays before the loops. Look at the difference:

>> M = round(rand(400)*300);
>> tic,[P,Q]=diagtrav(M);toc % No pre-allocation
Elapsed time is 134.937511 seconds.
>> tic,[P,Q]=diagtrav(M);toc % With pre-allocation
Elapsed time is 0.014006 seconds.

You should pre-allocate the return arrays!

19 May 2010 A more short code forgenerating a random matrix A of (1,-1); A more short code for generating a random matrix A of (1,-1),no loop Author: Binbin Qi

A general, ND version could look like:

function A = randmatrix(varargin)
A = floor(rand(varargin{:})*2)*2-1;

The 2D limitation, in addition to the need for usable help, a more descriptive name (something like RANDSIGNONES at least describes more closely what the code produces), and an H1 line prevent the file from being that useful as it now stands.

Comments and Ratings on Matt's Files View all
Updated File Comment by Comments Rating
13 Jul 2010 41 Complete GUI Examples 41 working GUIs to read and learn. Author: Matt Fig Lacerda, Luis

hello, i have read the examples but i still can´t answer my question...how can you make a GUI subplot something in another GUI? Not just plot, because what i am plotting has parameters altered by the called GUI..

thanks

12 Jul 2010 41 Complete GUI Examples 41 working GUIs to read and learn. Author: Matt Fig Bizkevelci, Erdal

30 Jun 2010 41 Complete GUI Examples 41 working GUIs to read and learn. Author: Matt Fig Grunde

Hi,
excellent examples.

GUIs are excellent case for object oriented code. It would be great to see an example of thet.

22 Jun 2010 COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig Fernandez, almacellesiti

Nice one Matt.

There might be a small problem though. With matlab 2009 in windows and matlab 2008 in linux I can reproduce the following problem.

combinator(24,23,'c')

leaves the last row of the return matrix to zeros. It does not update it because the parameter

BC=prod(M-K+1:M) / (prod(1:K));

inside the function function CN = combs_no_rep(N,K), at the line 343 of combinator.m

results in BC=23.999999999999996 (instead of the correct value, 24)

I guess a round in that line will take care of it.
A few other combinations of numbers give no problem.

14 Jun 2010 41 Complete GUI Examples 41 working GUIs to read and learn. Author: Matt Fig Christian

Thanks for this - very well written. Just need to find the time to practice but thanks for sharing this with us!

Top Tags Applied by Matt
self_rating, combinatorics, combinations, files, gui
Files Tagged by Matt View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
28 Jul 2010 Conics intersection Given the homogeneous matrices of two conics it recovers the (up to) four intersection points Author: Pierluigi Taddei conics intersections, conics, degenerate conic, homogeneous coordinat..., self_rating 20 0
26 Jul 2010 Screenshot Multiple matrix multiplications, with array expansion enabled Multiplying matrices, vectors, or scalars contained in two N-D arrays, with array expansion enabled. Author: Paolo de Leva vector algebra, arraylab, matrix, matrix algebra, vector expansion, scalar 133 17
  • 4.95
5.0 | 21 ratings
21 Jul 2010 Screenshot 3D Performance Map GUI Upload data from Excel and plot in 3D as a scatter plot, lsq curve fit, contour plot and others. Author: Christopher Rouxel self_rating, 3d, data import, lsqcurvefit, gui, robotics research gro... 201 0
  • 5.0
5.0 | 1 rating
10 Jun 2010 Screenshot CHECKVARS Checks for function masking by variables in an M-File. Author: Matt Fig mask, masking, function, variables 18 1
04 Jun 2010 Screenshot Plot and compare nice histograms by default Set bins and axis bounds to be appropriate for the data. Compares multiple sets of data elegantly. Author: Jonathan C. Lansey probability density f..., compare, visualize, statistics, mean, pdf 88 2
  • 5.0
5.0 | 1 rating

Contact us at files@mathworks.com