Rank: 21 based on 1688 downloads (last 30 days) and 37 files submitted
photo

Matt Fig

E-mail
Lat/Long
39.749897, -105.22158

Personal Profile:

Matt is currently pursuing a PhD in Mechanical Engineering at the Colorado School of Mines.


 

Watch this Author's files

 

Files Posted by Matt Fig View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
31 Aug 2012 Screenshot N_PERMUTE_K All possible permutations of the elements of set N, taken K at a time, with repetition. Author: Matt Fig permutations, combinations, multisets, probability, nchoosek, sample 101 26
  • 4.90909
4.9 | 12 ratings
20 Jan 2012 Screenshot MATLABTETRIS Another MATLAB version of the classic game, Tetris. Author: Matt Fig tetris, gui, game, fun, graphics, patch 147 11
  • 4.63636
4.6 | 12 ratings
13 Apr 2011 Screenshot LINECMENU Utility for creating a standard uicontextmenu for line objects. Author: Matt Fig uicontextmenu, uimenu, line, dualcolorplot, plot, utility 17 2
  • 5.0
5.0 | 1 rating
10 Sep 2010 Screenshot RCUMSUMC RCUMSUM cumulative sum of elements, restarted after every zero. Author: Matt Fig cumsum, cumprod 8 0
09 Sep 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 combinatorics, permutations, combinations, set, perms, nchoosek 82 30
  • 4.94444
4.9 | 18 ratings
Comments and Ratings by Matt Fig View all
Updated File Comments Rating
05 Nov 2013 COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig

Alesya,

That is a memory limitation on your computer. You are asking MATLAB to build a matrix that is (5^13)-by-13. This is a matrix with nearly 16 billion entries. In double precision this would require over 100 GB of RAM!

You probably need to do something different for your particular application.

05 Feb 2013 gaussleg Calculates the integral of function f from a to b using ngp Gauss points. Author: Matt Fig

Giuseppe, what are you talking about??

>> f=inline('sin(x)/x');
>> gaussleg(f,-1,1,8)

ans =

1.8922

>> f=@(x) sin(x)./x;
>> gaussleg(f,-1,1,8)

ans =

1.8922

>> version

ans =

7.14.0.739 (R2012a)

15 Jan 2012 MATLABTETRIS Another MATLAB version of the classic game, Tetris. Author: Matt Fig

Thanks for your comment Mingjing! I am surprised that the game is sluggish on your laptop, as I tested it on 3 laptops out of concern over its graphics-intensive nature. I guess my sample was too small!

One of the goals in making the game was to be able to have everything in one file, which is why I didn't use an image (or any of the other approaches I could have). Now I wonder if I could created the image from repmatting a hard-coded matrix inside the file? I will look into this in the coming weeks when I get time, and see if it speeds things up at all. Thanks for the idea!

13 Jan 2012 Band matrix generation Generates a band matrix Author: Catalin Serban

Caitlin, why did you submit two identical files? Did you do this by mistake, perhaps?

Also, you really should at least familiarize yourself with the ONES function in MATLAB, it would be most useful in your function...

01 Jul 2011 Choosse randomly number of elements from a vector Choosse randomly a number of elements from a vector. Randomly change the position of the vector Author: Dave Correa

Jan, you are absolutely correct. I made a mistake in understanding what this was supposed to do. Thanks for the catch.

Good thing I didn't provide a rating!

Comments and Ratings on Matt Fig's Files View all
Updated File Comment by Comments Rating
28 Nov 2014 41 Complete GUI Examples 41 working GUIs to read and learn. Author: Matt Fig James

hi. thanks for the useful info so far. however, i still have a question; how can i make an interactive listbox programmatically so that i can use it in a GUIDE built GUI?

25 Nov 2014 MATLABTETRIS Another MATLAB version of the classic game, Tetris. Author: Matt Fig priya

16 Nov 2014 41 Complete GUI Examples 41 working GUIs to read and learn. Author: Matt Fig Mariacarla

Thank you very much. It is a very complete work!

11 Nov 2014 N_PERMUTE_K All possible permutations of the elements of set N, taken K at a time, with repetition. Author: Matt Fig Grace

Hi, is this code has any limitation?

I used to find npermutek(2:14,7) and it showed

>> npermutek(2:14,7)
Error using zeros
Out of memory. Type HELP MEMORY for
your options.

Error in npermutek (line 87)
Matrix = zeros(L,K,CLS); %
Preallocation.

Anyway, this code is great!!

04 Nov 2014 41 Complete GUI Examples 41 working GUIs to read and learn. Author: Matt Fig Tan Nguyen

This is an amazing work

Contact us