답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 3

| 수락됨

답변 있음
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년 초과 전 | 2

| 수락됨

답변 있음
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년 초과 전 | 1

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

더 보기