Rank: 13 based on 1557 downloads (last 30 days) and 59 files submitted
photo

Jos (10584)

E-mail

Personal Profile:

Professional Interests:
neuroscience, physics, mathematics

 

Watch this Author's files

 

Files Posted by Jos (10584) View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Mar 2010 Screenshot FLIPXYVIEW (v2.0, mar 2010) flips (mirror rotates) the horizontal and vertical plot axes Author: Jos (10584) axis, horizontal, mirror, flip, graphics, vertical 11 1
  • 5.0
5.0 | 1 rating
15 Mar 2010 NCHOOSE (v2.1 mar 2010) return all combinations of the elements of a set Author: Jos (10584) nchoosek, combination, combinations, matrix, matrices, select 38 5
  • 5.0
5.0 | 3 ratings
18 Jan 2010 COMBN All combinations of N elements taken from the vector V. Author: Jos (10584) repetition, elements, permutation, matrices, select, combination 71 19
  • 4.73684
4.7 | 19 ratings
04 Jan 2010 ALLCOMB All combinations of input (v1.2, jan 2010) Author: Jos (10584) repetion, repetition, permutation, matrices, select, combinations 88 14
  • 5.0
5.0 | 11 ratings
04 Jan 2010 CELL2FLOAT converts cell array into scalar float array (v4.0, jan 2010) Author: Jos (10584) values, convert, 10584x, change, double, matrices 23 4
  • 4.66667
4.7 | 3 ratings
Comments and Ratings by Jos (10584) View all
Updated File Comments Rating
08 Jun 2010 TRUTH TABLE Creates a Logical Truth Table Matrix for 'N' Input Variables. Author: Abhishek Chakraborty

it takes so long because it is quite poorly programmed ... There are many, many faster solutions, for instance:

N = 4 ;
TT = dec2bin(0:(2.^N)-1)-'0'

18 May 2010 a short code for creating a random (1,-1) matrix This is a very short code file for creating a random matrix whose entries are either 1 or -1. Author: Changqing Xu

Indeed poorly coded using an unnecessary double-for loop (with pre-allocation though!), limited to 2D sqaure matrices only.

A vectorized, (too!) simple and flexible approach:

function R = rand01(varargin)
% H1 line goes here
% help goes here
R = 2*(rand(varargin{:})>0.5)-1 ;

12 May 2010 getkey Get a single keypress (v1.2 apr 2009) Author: Jos (10584)

@ Priyanshu, This was not designed to work in a graphical user interface. Use keypress callbacks of the gui window instead.

12 May 2010 Observation Rank Rank a vector of observations in an increasing order, it can easily deal with tie "duplicated rank" Author: Ahmed Badr

Hmm, you should definitely improve the help! This is what "help rank" returns:
UNTITLED2 Summary of this function goes here
   Detailed explanation goes here

Also choose a better name, as RANK is already taken by matlab itself.

21 Apr 2010 HERRORBAR Horizontal errorbar plot. Author: Jos (10584)

@ J B
You can modify the two handles returned by herrorbar separately, as in:

h = errorbar(x,y,ex) ;
set(h(1),'color','r') ;
set(h(2),'linewidth',2) ;

Comments and Ratings on Jos (10584)'s Files View all
Updated File Comment by Comments Rating
28 Jul 2010 RANDP Random integers with given probabilities ( (v2.0) Author: Jos (10584) Martin

What an elegant piece of code! Thanks for this.

27 Jul 2010 GRIDXY (v2.2 feb 2008) plot horizontal and vertical grid Author: Jos (10584) Parkyn, Roger

Worked for me thanks.

20 Jul 2010 GRIDXY (v2.2 feb 2008) plot horizontal and vertical grid Author: Jos (10584) Smith, Carey

% I had to comment-out uistack(h,'bottom') for an imagesc plot
% (Otherwise, the grid lines are not visible.)
% These examples worked for me & simplified some aspects of using this function:
gridxy(get(gca,'XTick'),get(gca,'YTick'), 'Color',[1,1,1]*0.4,'Linestyle',':');

gridxy(get(gca,'XTick'),get(gca,'YTick'), 'Color','y','Linestyle',':');

14 Jul 2010 LATSQ (randomized) Latin Square Author: Jos (10584) Brimijoin, W. Owen

09 Jul 2010 ALLCOMB All combinations of input (v1.2, jan 2010) Author: Jos (10584) Peter

Very nice!

Top Tags Applied by Jos (10584)
matrices, matrix, select, permutation, probability
Files Tagged by Jos (10584) View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Mar 2010 Screenshot FLIPXYVIEW (v2.0, mar 2010) flips (mirror rotates) the horizontal and vertical plot axes Author: Jos (10584) axis, horizontal, mirror, flip, graphics, vertical 11 1
  • 5.0
5.0 | 1 rating
15 Mar 2010 NCHOOSE (v2.1 mar 2010) return all combinations of the elements of a set Author: Jos (10584) nchoosek, combination, combinations, matrix, matrices, select 38 5
  • 5.0
5.0 | 3 ratings
18 Jan 2010 COMBN All combinations of N elements taken from the vector V. Author: Jos (10584) repetition, elements, permutation, matrices, select, combination 71 19
  • 4.73684
4.7 | 19 ratings
10 Jan 2010 Min/Max selection Search for k smallest or largest elements in the array Author: Bruno Luong quicksort, max, min, partial sort, selection, kthvalue 41 5
  • 5.0
5.0 | 4 ratings
04 Jan 2010 ALLCOMB All combinations of input (v1.2, jan 2010) Author: Jos (10584) repetion, repetition, permutation, matrices, select, combinations 88 14
  • 5.0
5.0 | 11 ratings

Contact us at files@mathworks.com