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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 1

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 3

| akzeptiert

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

fast 13 Jahre vor | 2

| akzeptiert

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

etwa 13 Jahre vor | 1

| akzeptiert

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

etwa 13 Jahre vor | 0

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

etwa 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 1

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

| akzeptiert

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 1

| akzeptiert

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 1

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

mehr als 13 Jahre vor | 0

| akzeptiert

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

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

mehr als 13 Jahre vor | 0

| akzeptiert

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

mehr als 13 Jahre vor | 1

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

mehr als 13 Jahre vor | 0

| akzeptiert

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

mehr als 13 Jahre vor | 0

Mehr laden