Réponse apportée
Choose samples from statistical distribution for fmincon optimization
It is probably a better idea to select the samples randomly and then have fmincon optimize for the given sample. If you must ta...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to synchronise inherited properties of class
I would say your UTubeClass should not descend from TubeClass. It's not the case that UTube "is a" Tube, but rather than UTube ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Bootstrap Confidence interval Error: "Statistic size 999 for one jackknife sample is not equal to statistic size for the entire data 1000"
The problem is that the output of function m is a vector of 1000 elements for the full sample and it is a vector of 999 elements...

plus de 6 ans il y a | 0

Réponse apportée
Monte Carlo Simulation to generate 10,000 data from 100 data.
Here is one way: originalSample = rand(100,1); % You have your own original sample. This is some fake data to use instead for ...

plus de 6 ans il y a | 0

Réponse apportée
Monte Carlo Simulation Result Tabulation
% rand(2,5) doesn't do what you seem to think. Try this % (with a little extra code that might help you see how to do this in ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Histogram Fitting in Matlab
First, I suggest you change the histogram plot so that the frequencies are represented by the areas of the different bars rather...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
zeros in data for gamma distribution
rain1positive = rain1(rain1>0);

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to add a time limit to response time?
One way is to use GetSecs, which returns the current time. For example, MaxWait = 1.5; % As an example, suppose you want a ma...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Parameters for Frechet Distribution
You could write a function to compute -log(likelihood of your data) from alpha & beta, then use fminsearch to find the alpha,bet...

plus de 6 ans il y a | 0

Réponse apportée
Convolution of two probability density function
I don't know whether you can do this directly in MATLAB. If not, you can do it using the Cupid toolbox. Here is an example: %...

plus de 6 ans il y a | 0

Réponse apportée
How can i merge 2 cells with different items
function str3 = mergefields(str1,str2) % Note: Returns the value in str2 for any field that is common % to both str1 & str2. ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Convolution of two log normal distributions
Convolutions are pretty easy to do in Cupid. For example, the following code gives the attached figure muX = 9.7224; % For Ni D...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to fit a general curve on different datasets ?
You need to set up separate independent variables for each dataset, something like this: %% Example of two datasets (3 scores e...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to get the OLS estimate from a regression based on a vector?
How about this: deltay = diff(y); b = regress(deltay,y(1:end-1));

plus de 6 ans il y a | 0

Réponse apportée
How perform anova tests after using regress in MATLAB?
Elisa, I think this might do what you want: %linear regression d1 = D(:,1); d2 = D(:,2); d3 = D(:,3); t = table(d1,d2,d3);...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How perform anova tests after using regress in MATLAB?
It's a little difficult to say because "perform ANOVA" can mean several different things with regression models. Usually the be...

plus de 6 ans il y a | 0

Réponse apportée
How to create a fit with more than 2 independent variables?
You might be able to do it with fminsearch, which is a very general fitting tool. The basic idea is that you write a function t...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How can I distinguish between an semi exponential and Gaussian distribution.
You could check the skewness, since exponentials are quite skewed and normals are not.

plus de 6 ans il y a | 0

Réponse apportée
2 way anova for pre post design
First reformat your data to have one row per individual. The data table 'tbl' should look something like this: Group t1 ...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Joint Probability of Dependent Variables
You might want to use the FileExchange contribution for joint kernel density estimation

plus de 6 ans il y a | 0

Réponse apportée
How can I find a p-value when dealing with a weighted sum of chi-square distributions?
I think you have to work out the distribution of the weighted sum and then check the p value in that. Here is an example, assum...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Need to append several pdf files into one global pdf file.
PDF Split and Merge works well, and it's free / open-source.

presque 7 ans il y a | 0

Réponse apportée
Generate random numbers from a mixture distribution
> With this formula I obtain a concatenation from 2 distribtutions but not a mixture. Well, a mixture is just a concatenation f...

presque 7 ans il y a | 1

Réponse apportée
Estimate the parameters of a skewed normal distribution knowing p5, mean and p95
Here is one script for doing this with Cupid. I don't think you are guaranteed to be able to hit all three targets exactly (not...

presque 7 ans il y a | 0

Réponse apportée
Lognormal probability density function Fitting to experimental data
I'm guessing that your rp values are the tops of various bins and that the fp values are the probabilities in each bin? If so, ...

presque 7 ans il y a | 0

Réponse apportée
How to use Power Analysis to Estimate Mu for Exponential Distribution
I don't think the sampsizepwr function is appropriate here. Although the sampling distribution of the mean of exponentials is a...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
How can I make one of my parameters always greater than another one?
beta = alpha0 + rand;

presque 7 ans il y a | 1

| A accepté

Réponse apportée
.mat file name as a variable
use uigetfile to manually select the file name, so that you have the name as a string, fname. Then you can use load(fname) to l...

presque 7 ans il y a | 0

| A accepté

Réponse apportée
Matlab repeated measures anova - different result than in other packages
Hi again Rose, After playing around with this some more, I think the secret is to tell MATLAB that any numerically-coded catego...

presque 7 ans il y a | 0

Réponse apportée
Conduct 2x3 repeated measures ANOVA using ranova()
% Describe within-Ss design: WithinFacs = table([1 1 1 2 2 2]',[1 2 3 1 2 3]','VariableNames',{'C1','C2'}); % In the next line...

presque 7 ans il y a | 0

Charger plus