Answered
Random number with a large range?
Bob, I think you want to look at Example 1 in the doc for the rand function: http://www.mathworks.com/help/matlab/ref/rand.ht...

12 years ago | 0

Answered
How can I create a joint (2D) histogram of two equally-sized datasets?
Patrick, if you have access to the Statistics Toolbox, you might look at the HIST3 function. But with that much data, perhaps...

12 years ago | 0

Answered
Difference between spearmann correlation and fit command
You're (correctly) fitting a linear model with a slope and an intercept. The "model" that a correlation coefficient is equivalen...

12 years ago | 0

| accepted

Answered
How to make objects of the same class have independent containers.Map member?
Guanfeng, the problem is that you're initializing the map property in the properties block, and the value you're initializing wi...

12 years ago | 1

| accepted

Answered
Random numbers with Zero mean (not the basics)
AND, the answer to your latest question, if I understand it correctly) is yes, it doesn't matter if you generate one value at a ...

12 years ago | 1

Answered
R2013b - uitable can't accept data from new 'table' data type?
Shad, give this a try: >> uit = uitable; >> t = table([1;2;3],[4;5;6]) t = Var1 Var2 ____ ____ ...

12 years ago | 0

| accepted

Answered
Error importing file using dataset
Like Tom, I'm a little unclear on what you're asking for. I'm going to assume from your format string that you want to read the ...

12 years ago | 0

Answered
Whats the difference between a table (new in R2013b) and a dataset (stats toolbox)?
Julian, as you noticed, MATLAB R2013b includes two new array types known as tables and categorical arrays. These are very simila...

12 years ago | 3

| accepted

Answered
Random numbers with Zero mean (not the basics)
AND, no offense intended, but this doesn't make a lot of sense to me. I suspect you know the following: randn draws from a st...

12 years ago | 2

| accepted

Answered
Hi, I am trying to use grpstats on my program and trying to compute median and percentile and skew but somehow i am not getting the program to run.
Rishav, I suspect the problem is that your data has a weeknum for which there is only one row. You'll need to specify 1 for the ...

12 years ago | 1

| accepted

Answered
mvnrnd bug when run in parfor?
Your cov matrices that are pretty badly badly conditioned, but th reason why M<VNRND refuses to continue is that one of them is ...

13 years ago | 0

Answered
eigenvalue in factor analysis
I think you're confusing Factor Analysis (or at least the version of FA that FACTORAN performs) with Principal Component Analysi...

13 years ago | 0

Answered
Specify different distributions for different parameters in glmfit
> From my understanding, distr says how y changes as a result of changes in X No. The distribution in a GLM describes the ran...

13 years ago | 0

Answered
Specify different distributions for different parameters in glmfit
In the usual notation and terminology, a GLM is specified as mu(x) = E[y|x] = h(x*beta) y|x ~ F(mu(x),phi(x)) where...

13 years ago | 0

Answered
Help with mdscale starting configuration?
You want to reconstruct the cartesian coordinates of six points from their 6x6 distance matrix. What would such a reconstruction...

13 years ago | 0

Answered
Working with numbers smaller tha 10^-308
Quite often in statistics when one has very small probabilities, one works on the log scale. That's why one typically maximizes ...

13 years ago | 1

Answered
Datasample - is there a normal distribution equivalent?
Bran, I'm not sure I understand your question. If your 3x4913 matrix itself represents a sample fro a tri-variate normal dist...

13 years ago | 0

Answered
How can I construct a dataset array from data on an excel worksheet with an unknown number of rows
Jonathan, it's possible to use named ranges per the <http://www.mathworks.com/help/matlab/ref/xlsread.html XLSREAD reference pag...

13 years ago | 0

| accepted

Answered
dataset arrays - extract and reconstruct variables
Sam, it may be that you want to combine variables with the same name from different arrays. If that's the case, then something s...

13 years ago | 0

Answered
using a seed for normal random number
dav, as long as you're using a fairly recent version of MATLAB, the rng function is what you want to use. For reproduceability, ...

13 years ago | 1

| accepted

Answered
Help needed on Date Strings.....
Nitin, If you have a list of date strings, then you can put them in a cell array: datenum({'10/31/2012' '11/302012' '12/29/...

13 years ago | 0

Answered
Need a more suitable number type for statistical calculations
sina, MATLAB does NOT store only five digits. Please see the help for the format command, and read http://www.mathworks.com/h...

13 years ago | 0

Answered
Performance degradation of random number generation in MATLAB r2013a
Alexander, I will make a note to look into the difference in performance, but a couple of things you might keep in mind (you may...

13 years ago | 1

Answered
create new variable in dataset from combinations of other variables
Create a vector of length 4 with the values you want, and assign d.GroupIndex = values(i) instead.

13 years ago | 0

| accepted

Answered
create new variable in dataset from combinations of other variables
Jonas, I think this is what you're looking for: d = cell2dataset({'a' 'b' 'c'; 'j' 'k' 'v'; 'j' 'r' 'v'; 'i' 'r' 's'; 'i' '...

13 years ago | 0

Answered
How can i find distance between x and y each being 500 numbers.
Antonio, if you have access to the Statistics Toolbox, this sounds like a good use for the KMEANS function. <http://www.mathw...

13 years ago | 0

Answered
Creating a dataset array
There are a few things wrong here: * The number of names in that second input is, as the error message suggests, only 29, whi...

13 years ago | 0

| accepted

Answered
How to convert dataset variables from cell?
This >> nominal(data.sex) Error using categorical (line 110) Could not compute unique values in A using UNIQUE. Error...

13 years ago | 1

Answered
Linear combination of cell arrays
Either of these will work: >> A = {rand(2, 2), ones(1, 2)} >> B = {rand(2, 2), [3, 4]} >> cellfun(@(a,b) 3*a + 4*b, A...

13 years ago | 0

| accepted

Answered
RandStream generators & dieharder validation suite?
Brad, if your goal is to run Dieharder, I can't help. If your goal is to verify that the generators in MATLAB pass stringent ...

13 years ago | 0

Load more