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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 1

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

más de 7 años hace | 0

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

Pregunta


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

más de 7 años hace | 1 respuesta | 0

1

respuesta

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

más de 7 años hace | 3

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

más de 7 años hace | 0

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

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

más de 7 años hace | 0

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 1

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 1

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

más de 7 años hace | 1

| aceptada

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

más de 7 años hace | 0

| aceptada

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

más de 7 años hace | 0

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

más de 7 años hace | 0

| aceptada

Cargar más