답변 있음
Changing 'double' to 'dataset'
Mads, "doing Leave-one-out cross validation on a dataset" is way too vague to understand what statistical model or method you're...

대략 13년 전 | 0

답변 있음
Changing Double to String Automatically in a Dataset Array
Nj, you might also consider using an ordinal variable here: >> ds = dataset([10;100;10;1000;100000;1;1;10000],'VarNames','S...

대략 13년 전 | 0

답변 있음
problem with gammainc function
This is just a standardization issue. The doc for MATLAB's <http://www.mathworks.com/help/matlab/ref/gammainc.html gammainc> an...

13년 초과 전 | 1

답변 있음
transformation between different time representations
Elena, if your times are strings, then Azzi's suggestion is the way to go. But if your times are numeric (53221, say, as oppose...

13년 초과 전 | 0

답변 있음
KMEANS delivers different results on the same data set?
Christian, the kmeans functions uses a randomly-chosen starting configuration: >> help kmeans kmeans K-means clustering...

13년 초과 전 | 2

| 수락됨

답변 있음
How can i use categorical predictors into glm
Andrea, if you have a dataset array containing your data, GeneralizedLinearModel.fit will automatically recognize any predictor ...

13년 초과 전 | 0

답변 있음
Descriptive Statistics Function for a Dataset Array
Diego, the grpstats function ordinarily works on groups within data, but it will compute summary stats on complete variables as ...

13년 초과 전 | 0

| 수락됨

답변 있음
how to model multivariate normal distribution in matlab?
Wei, unless you want to evaluate each component's pdf separately, I think you want to use the pdf method of the gaussian mixture...

13년 초과 전 | 0

답변 있음
Why does the MRG32k3a return only positive values in the internal state matrix?
The <http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/c++/streams4.pdf original paper> defines the internal state of MRG32k3...

13년 초과 전 | 1

답변 있음
Random Number Generation for Parallel Computing Toolbox
Just to be clear, MATLAB initializes the random number generators on each worker so that they are definitely _not_ the same, and...

13년 초과 전 | 1

답변 있음
error using multivariate Gaussian number generator (mvnrnd)
In this case, it's not the positive semi-definiteness, but the symmetry. You have relative differences that are on the order of...

13년 초과 전 | 0

| 수락됨

답변 있음
How to duplicate certain rows of a dataset (class = dataset)?
As Matt says, no need to use loops. This might be a little simpler. First cook up some data: aa = dataset((1:100)',rand...

13년 초과 전 | 0

답변 있음
How to write cell array to csv file
Lennaert, if you have access to the Statistics Toolbox, you may find using dataset arrays is one way to go. Hard to say without...

13년 초과 전 | 0

답변 있음
Is randperm() consistent under different hardware platform, OS, MATLAB versions?
John, there is no difference in the random number generators between different hardware. You seem to be saying that this was ...

13년 초과 전 | 0

답변 있음
combining cell and double type variables in dataset (version compatibility issue??)
Based on that error message, I think perhaps you have another dataset class that is shadowing the one in the Statistics Toolbox ...

13년 초과 전 | 0

답변 있음
same values using randi setting seed as default
As others have said, randi is for "sampling with replacement", while randperm is for "sampling without replacement". If you hap...

13년 초과 전 | 1

답변 있음
Linear regression for the principal components
See <http://www.mathworks.com/help/stats/examples/partial-least-squares-regression-and-principal-components-regression.html?prod...

13년 초과 전 | 0

| 수락됨

답변 있음
Why my wblfit function gives errors
Russ, your data input x is a vector, and in any case the code checks for a vector. But you haven't said what any of your other ...

13년 초과 전 | 0

답변 있음
How does one create a dataset from a large array and subsequently name the variables?
Tolulope, your question is not entirely clear. You show data = <9000x130 dataset> headers = <1x130 cell> and it's no...

13년 초과 전 | 0

| 수락됨

답변 있음
what is the algorithm used for generating random number in rand() function?
You will find very specific literature references to all of the generators that MATLAB provides if you look in the MATLAB docume...

13년 초과 전 | 0

답변 있음
How do I use MLE on a shifted gamma distribution?
Pat, thresholded distributions are typically not easy to fit by maximum likelihood. I am not sure of the details for a 3-param ...

13년 초과 전 | 1

| 수락됨

답변 있음
How to modify mdscale such as to deal with non-Euclidean metric?
Chris, you may mean one of two things: 1) You may want to do MDS on a dissimilarity matrix that contains non-Euclidean distan...

13년 초과 전 | 0

| 수락됨

답변 있음
[COEFF,SCORE] = princomp(X); Why is SCORE != X * COEFF ???
Hi Stewart - You forgot to center the data first: "princomp centers X by subtracting off column means". Hope this helps.

13년 초과 전 | 0

답변 있음
Steepness of a Histogram
There are a few things to note about these two histograms. They have (at least approximately) the same mean. They are both (at...

13년 초과 전 | 3

답변 있음
Match up two set of points in the least squares sense (procrustes command)
MRR, perhaps I am misunderstanding your question, but you're going to have to say what you mean by "a least squares sense" if yo...

13년 초과 전 | 0

답변 있음
How to know seed directly?
Hsinho, you may be asking for this: >> rng shuffle >> s = rng s = Type: 'twister' Seed: 1066045100 ...

13년 초과 전 | 1

| 수락됨

답변 있음
What is the difference between PCA solutions?
You haven't provided a lot of information about what you are actually doing. If you are using the PRINCOMP function in the St...

13년 초과 전 | 0

답변 있음
I need to know each point to which cluster in kmeans fun.
Huda, you gave kmeans two points and asked it to cluster them into two clusters. It has assigned the first point to cluster 1, ...

13년 초과 전 | 0

| 수락됨

답변 있음
Fix the seed in Matlab R2011b | Why RandStream failed?
Allen, I can't tell what you mean by, "the random numbers are the same only for first iteration when I restart Matlab." You may...

13년 초과 전 | 0

답변 있음
isnan in Dataset Array
AMD, you don't say what's in your array, so I'll have to guess that because you're looking for NaNs, all of the variables are do...

13년 초과 전 | 0

| 수락됨

더 보기