Rank: 18 based on 1471 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.

Professional Interests:
MATLAB, ANSYS, C++, Combustion

 

Watch this Author's files

 

Files Posted by Matt 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 94 25
  • 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 125 11
  • 4.6
4.6 | 11 ratings
13 Apr 2011 Screenshot LINECMENU Utility for creating a standard uicontextmenu for line objects. Author: Matt Fig uicontextmenu, uimenu, line, dualcolorplot, plot, utility 21 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 14 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 85 30
  • 4.94444
4.9 | 18 ratings
Comments and Ratings by Matt 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's Files View all
Updated File Comment by Comments Rating
08 Aug 2014 COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig mohammad

please any help

03 Aug 2014 COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig mohammad

please , help me

01 Aug 2014 COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig mohammad

my friend , i have a problem when performing your program that's:
clc
clear
A=[1:29];
A=A(:);
combs = A(combinator(29,28,'c'))
when K is 28 the function is working well but when K is 27 combs = A(combinator(29,27,'c')) MATLAB gives me error:

combs = A(combinator(29,27,'c'))
Subscript indices must either be real positive integers or logicals.

from K=26 to 23 the function works normally and perfectly but K=22
combs = A(combinator(29,22,'c'))
Subscript indices must either be real positive integers or logicals.

and :
combs = A(combinator(29,21,'c'))
Subscript indices must either be real positive integers or
logicals.

and:when K=20
combs = A(combinator(29,20,'c'))
my computer become very heavy where I was forced to get out of the program

i don't complete the rest of numbers so that know what will happen with them

please Matt fig , how can i solve these problems ?
i want to tell you that i have vectors contain more than 1000 numbers not 29 numbers only and i will do this processes on them

30 Jul 2014 41 Complete GUI Examples 41 working GUIs to read and learn. Author: Matt Fig Mustafa

03 Jul 2014 COMBINATOR -combinations AND permutations Returns 1 of 4 different samplings on the set 1:N, taken K at a time. Author: Matt Fig Shane

Very helpful! A little scary to work with, because things get real big real fast, but this package deals with a difficult problem with great efficiency.

Contact us