Respondida
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...

más de 12 años hace | 0

Respondida
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...

más de 12 años hace | 0

Respondida
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...

casi 13 años hace | 0

| aceptada

Respondida
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...

casi 13 años hace | 1

| aceptada

Respondida
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 ...

casi 13 años hace | 1

Respondida
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 ____ ____ ...

casi 13 años hace | 0

| aceptada

Respondida
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 ...

casi 13 años hace | 0

Respondida
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...

casi 13 años hace | 3

| aceptada

Respondida
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...

casi 13 años hace | 2

| aceptada

Respondida
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 ...

casi 13 años hace | 1

| aceptada

Respondida
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 ...

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 0

Respondida
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 ...

alrededor de 13 años hace | 1

Respondida
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...

alrededor de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 0

Respondida
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, ...

más de 13 años hace | 1

| aceptada

Respondida
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/...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 1

Respondida
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.

más de 13 años hace | 0

| aceptada

Respondida
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' '...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 1

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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 ...

más de 13 años hace | 0

Cargar más