Community Profile

# Mike Sheppard

26 total contributions since 2010

• ﻿

View details...

Contributions in
View by

Submitted

Probability Distributions
Probability Distributions

Submitted

Random arrays from the left truncated normal distribution.
Random arrays from the left truncated normal distribution.

Submitted

Fit all valid parametric probability distributions to data
ALLFITDIST Fit all valid parametric probability distributions to data.

Submitted

Multivariate normal random vectors with fixed mean and covariance matrix
Random vectors from the multivariate normal distribution with fixed mean and covariance matrix.

Submitted

Political Apportionment
Allocates seats according to METHOD until NUM seats have been allocated

Submitted

Apply a function to a set of probability distributions
Returns the distribution of the function FUN applied to the set of distributions given in VARARGIN

Submitted

Sum of probability distributions
SUMPDF Probability distribution of the sum of distributions

Submitted

Minkowski Sum
Minkowski sum of two arrays

Submitted

All Sums
Distribution of unique sums among all combinations of vectors.

Submitted

Generalized Bar Charts
Stacked, Grouped, Clustered, Floating; and MIXED of any combination

Submitted

Repeated Values
Finds all repeated values for input X, and their attributes.

Submitted

System of linear congruences
Solution to Simultaneous Linear Congruences

Submitted

polymorph
Morphs two polygons

Submitted

S=wiki(str) returns the Wikipedia article for string 'str'

Submitted

Excel Column Conversion
Converts between column name and number for Excel representation

Submitted

Nested logical indexing
nested(IN) returns the final result of a list of nested logical indices.

Question

Row sums by vector indices without for loop?
Best illustrated by example M=rand(5,10); s=[1 3; 5 8; 9 10]; for i=1:size(s,1) sm(:,i)=sum(M(:,s(i,1):s(i,2)),2); en...

6 years ago | 2 answers | 1

### 2

Responded

Re: Combining cell array by rows
I think I figured it out, but it looks like it could be something simpler: Input={'ab' 'cd' 'ef';'gh' 'ij' 'kl';'mn' 'op' 'qr';...

7 years ago | 5356 views

Posted

Combining cell array by rows
Can't quite seem to figure it out. Here's example Input and Output of what I'm looking for: Input={'ab' 'cd' 'ef';'gh' 'ij' 'kl...

7 years ago | 5356 views

Responded

Re: Simple string search question
Oh nice! I didn't know about the function either. Ok, more exploring. 90% of the way there.

7 years ago | 6587 views

Responded

Re: Simple string search question
Oleg, thanks! With a little workaround got it to be the general case I was looking for where str, expr1, and expr2 could be any ...

7 years ago | 6587 views

Posted

Simple string search question
Still trying to understand the syntax of regexp, so this may be a basic question: I have a long STR and two EXPR (EXPR1, EXPR2)...

7 years ago | 6587 views

Responded

Re: Legends for patch
Ah! Ok, tried a work-around using hold and it worked. Thank you! xdata = [2 2 0 2 5; 2 8 2 4 5; 8 8 2 4 8]; ydata = [4 4 4 2 0;...

7 years ago | 7094 views

Posted

Legends for patch
I'm trying to write a code that needs a legend using patches, but can't seem to get it correct. Here is an example code; should ...

7 years ago | 7094 views

Posted

Clustered Floating Bar Chart - log scale
I'm having trouble creating a clustered floating bar chart that has to be in the log scale. The idea is similar to this image f...

7 years ago | 2967 views

Posted

Map Projections
Given an image of an arbitrary map on earth and knowing the Lat-Lon coordinates for n reference points in the image (x1,y1)->(L...

7 years ago | 2839 views