Beantwortet
Bootstrap standard errors for nonlinear least squares regression
The procedure you describe is not exactly using bootstrap methodology, at least as I understand it. In your Step 1 you say you w...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
how to compute a for cycle in copulapdf varying nu parameter from 1 to 8
Not sure if this is what you want, but it looks easy enough. Change the first line to for nu=1:8 add end as the ...

fast 8 Jahre vor | 1

| akzeptiert

Beantwortet
P-value of cross-correlation
If I understand, you are looking for the tail probability of vm2 within the Pearson's r distribution. That distribution doesn't...

fast 8 Jahre vor | 1

Beantwortet
Hi everyone, I need your help on my problem
If n is more than a very small number, the sum of n of independent Ricians will be very close to normal with mean n*m and varian...

fast 8 Jahre vor | 0

Beantwortet
Retrieve a variable from a function
syms p n m b d t eqn = p == ((n-m)*((1/b)-(1/d)+ ((n-m)*t)/(n*b*d))); solve_for_n = solve(eqn,n) % Specif...

fast 8 Jahre vor | 1

| akzeptiert

Beantwortet
Standard error of an Unconditional Variance?
Whenever any model parameter is estimated from random data, there is some uncertainty about the true value of that parameter. A...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
How to produce a multiple linear fittings for scatter plot?
It's not entirely clear what you have so far or what part you are having trouble with, but it sounds like you may want something...

fast 8 Jahre vor | 0

Frage


Unit testing: Check result of e.g. verifyEqual
In a unit test, I have many lines such as: verifyEqual(testCase,1.5,x); Next I would like to have an 'if' statement to e...

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Assign Multiple Variables
<https://au.mathworks.com/matlabcentral/fileexchange/48439-matsplit matsplit> does this.

fast 8 Jahre vor | 3

Beantwortet
Look-up table row and assign values to individual variables
Another option is to return a structure containing all the variables you want as its fields. For example, rowName = 'Joh...

fast 8 Jahre vor | 0

Beantwortet
MATLAB Class-based unit tests: How to pass in variable containing data to test
Try putting getData and afunction in a separate "methods" section--note, plain "methods", without "(Test)"--that is placed befor...

fast 8 Jahre vor | 0

Beantwortet
Implementing Welford's Algorithm (incremental variance calculation)
<https://github.com/ewiger/runstat RunStat> on GitHub seems to have a MATLAB implementation (among others)

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
Issue of classification of variables in a parfor.
I'm not sure I follow this, but I think there is a problem in these lines: [gamma_opt,xit_opt]=find(eval_val==min(min(e...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
How to plot partial correlation?
The partial correlation of X and Y controlling for some other variables [Z] is the correlation of rX with rY, where rX and rY ar...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
How can i give multiple ranges for variable x within fmincon bounds or inequalities?
Have a look at John D’Errico’s fminsearchbnd and fminsearchcon. Maybe one of these will be flexible enough to do what you want....

fast 8 Jahre vor | 0

Beantwortet
How can i give multiple ranges for variable x within fmincon bounds or inequalities?
For the situation with a single x, maybe the simplest approach is to run fmincon 3 times--once with the bounds 10,30; a second t...

fast 8 Jahre vor | 0

Beantwortet
Given two probability density functions and correlation matrix, how to generate two correlated random sequences?
This question is difficult because there are lots of ways to generate sequences from different bivariate distributions that all ...

fast 8 Jahre vor | 0

Beantwortet
Why p-values are uniformly distributed when the null hypothesis is true?
This is not really a MATLAB question, but OK, I’ll have a go. First a technical detail: p values are only uniformly distribut...

fast 8 Jahre vor | 1

| akzeptiert

Beantwortet
Calculation of Factorial using Recursive Relation
This might help: <https://en.wikipedia.org/wiki/Recursion_(computer_science) Wikipedia>

fast 8 Jahre vor | 0

Beantwortet
Using MLE for duration data?
Is the problem that your data are in a non-numeric datetime format? If so, you need to convert them to numbers. See <https://a...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
Generate a random variable [0,100] according to normal, weibull, and gamma distribution
Rather than truncating an unbounded distribution to lie between 0 and 100%, you might consider using an inherently bounded distr...

fast 8 Jahre vor | 0

Beantwortet
How to determine and plot a probability density function?
The discretize function will do most of the job. You may have to play around with it a bit, but something like this should work...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
Inconsistent Results w/ fitdist for Generalized Pareto
A couple of comments, though I don't think they will help you much. First, check the <https://au.mathworks.com/help/stats/pro...

fast 8 Jahre vor | 0

Beantwortet
Multi-Variable Constrained Optimization of Undefined Objective Function
You must provide an objective function in order to use MATLAB's minimization routines. If the objective function can only be co...

fast 8 Jahre vor | 1

Beantwortet
Understanding Parameter Errors in fitnlm
Wikipedia has a pretty good explanation of the <https://en.wikipedia.org/wiki/Mean_squared_error mean squared error> that fitnlm...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
How can I obtain a truncated log-Normal distribution object?
I think you can do it with <https://github.com/milleratotago/Cupid Cupid>. It would look something like this: myDist = Tru...

etwa 8 Jahre vor | 1

Beantwortet
How do I generate simulated data?
It is hard to say without knowing about the structure of your data set or about exactly what you mean by "simulated data", but h...

etwa 8 Jahre vor | 1

| akzeptiert

Beantwortet
I have a main class which takes 2 arguments, Two arguments(Same) are coming from 2 another classes which are doing differnet computations . Now I need to define a 3rd argument which allows user to specify which class he wish to chooses .
I'm guessing main class is a parent class and sum and diff are two child classes descended from it. If that is right, the bes...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
How can I assure that the Kruskal-Wallis test work right in MATLAB?
The histograms provide very strong evidence against your assumption that the measurements are "time independent", so I think the...

etwa 8 Jahre vor | 0

Beantwortet
Transform Mean and standard deviation that follow normal distribution into Mi and Sigma that follow Logarithmic normal distribution (Log-Normal)
finalmu = 550; finalsigma = 27; lnsigma = sqrt( log( finalsigma^2 / finalmu^2 + 1) ); lnmu = log( finalmu/exp(0.5*lns...

etwa 8 Jahre vor | 0

| akzeptiert

Mehr laden