Community Profile

photo

Tom


Active since 2013

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Recursively generating permutation matrices
Hi, As part of some code I'm writing I need to generate all possible matrices for a given size m x n, where there must be exa...

9 years ago | 2 answers | 0

2

answers

Question


Delete rows of different permutations of same set
Say I have an mx4 matrix A. The rows of A contain different digits from 0-9, but many of them have the digits in a different or...

9 years ago | 2 answers | 0

2

answers

Question


Call Matlab distance metrics with function
Hi, I'm writing a function in which I call the built in Matlab function 'pdist'. Can I somehow have the user specify which d...

10 years ago | 1 answer | 0

1

answer

Question


Repeat Try/Catch loop?
I have code that sometimes results in an error, and sometimes not. I'd like to have the code run, and then if an error occurs t...

10 years ago | 2 answers | 3

2

answers

Question


Find index of first nonempty cell in array?
Hi, I have a cell array with values and empty cells. I'd like to return the index of the first empty cell. For example, f...

11 years ago | 1 answer | 0

1

answer

Question


How to repeat rows of matrix?
Hi, I have a matrix and a vector indicating how many times the corresponding lines in the matrix should appear. I'd like to ...

11 years ago | 5 answers | 1

5

answers

Question


Ismember function -- return all indexes, not just lowest?
According to the Matlab documentation, [Lia,Locb] = ismember(A,B) returns an array, Locb, containing the lowest index in B fo...

11 years ago | 2 answers | 1

2

answers

Question


How do I delete empty cells in rows of a cell array?
Hi, I have a cell array of strings and empty cells. I would like to rearrange this so the empty cells are on the end of each...

11 years ago | 2 answers | 0

2

answers