Answered
Generalized extreme value distribution Parameter Estimation
https://de.mathworks.com/help/stats/gevfit.html

7 years ago | 0

Answered
Unable to find explicit solution
The message says that your differential equation is too complicated to get an explicit expression as solution. Try a numerical ...

7 years ago | 0

Answered
Failure in initial user-supplied objective function evaluation
Try abc = @fun1; x0 = [0,0]; f = abc(x0); and see what is returned in f.

7 years ago | 0

Answered
Using ode45 for transient analysis
First possibility: Use the end time of integration big enough such that the water temperature surely exceeds the one you prescr...

7 years ago | 2

| accepted

Answered
Why is the output of my function infinity?
Since your function tends to 0 as x -> 0 by L'Hospital, you can integrate y = cos((pi*cos(x))/2).^2.*csc(x).*(x > 0);

7 years ago | 0

Answered
Probability of at least 1 even number using while loop
Maybe of interest for checking the result of the Monte Carlo simulation: P(rolling at least one even number with 3 dice) = 1- ...

7 years ago | 0

Answered
How to find a corresponding matrix value
[M I] = min(t); y(I)

7 years ago | 0

| accepted

Answered
Multiple linear equality constraints in fmincon
Aeq = [1 0 1 0 ; 0 1 0 1 ; 1 1 0 0 ; 0 0 1 1]; beq = [sum of column 1 ; sum of column 2 ; sum of row 1 ; sum of row 2] X = [X1...

7 years ago | 1

| accepted

Answered
Trying to start optimization problem (minimization) with constraints
Setting cJ= c/(2*J) and kJ = k/J, you arrive at theta(t) = exp(-cJ*t)*(1.309*cJ/sqrt(kJ-cJ^2)*sin(t*sqrt(kJ-cJ^2)) + 1.309*cos(...

7 years ago | 0

Answered
How to Solve Second Order ODE with 1 boundary condition for y and 1 non-zero boundary condition for y'
If you convert your second order equation to a system of first-order equations y1' = y2 y2' = -a*y1 you can use bvp4c to set ...

7 years ago | 1

| accepted

Answered
how to write matlab code
N=20:50 A = setdiff(N,N(mod(N,4)==0 & mod(N,5)==0))

7 years ago | 0

Answered
Partial Differential Equation Toolbox
Take c = [- x, x - y ; - ( x - y ), - y] Then -div(c*grad(u)) = x * d^2u/dx^2 + y * d^2u/dy^2 Section 2-62 in http://www....

7 years ago | 1

| accepted

Answered
Solving for two uknown vectors in a matrix equation
syms t1 t2 s1 s2 s3 [solt1 solt2 sols1 sols2 sols3] = solve([N*[t1;t2]+R*[s1;s2;s3] == x],[t1 t2 s1 s2 s3])

7 years ago | 0

Answered
Question about Taylor series
d(1) = cos(a), d(2) = -sin(a), d(3) = -cos(a), d(4) = sin(a) So your if-statement to determine f^(n)(a) is wrong. Further, "er...

7 years ago | 0

Answered
solving an implicit function with two variables
Multiply by P^r and substitute P^r = x. You'll get a quadratic equation in x. Solutions are P1 = ( (Q^(-r)) / 2 * (1 + sqrt(1 ...

7 years ago | 1

| accepted

Answered
Standard Deviation of product of two Gaussian Distribution.
https://math.stackexchange.com/questions/1416518/standard-deviation-of-the-product-of-gaussians

7 years ago | 2

| accepted

Answered
Solving compound linear optimization problem
Look up https://de.mathworks.com/discovery/multiobjective-optimization.html

7 years ago | 0

Answered
How do I solve for the upper bound of a definite integral when I know what the integral is equal to?
a1=...; a2=...; w=...; xo=...; value_integral=...; sol = fzero(@(C)((integral(@(x)1./(a1*sin(w*x)+a2*sin(3*w*x)))-value_int...

7 years ago | 1

Answered
Pseudo-random distribution of points with minimum distance
See Bruno Luong's code under https://de.mathworks.com/matlabcentral/answers/432516-model-of-a-crowd-on-concert-venue-or-how-to-...

7 years ago | 1

| accepted

Answered
Last Tableau of Simplex Method in LP Problem
https://www.12000.org/my_notes/simplex/index.htm

7 years ago | 0

| accepted

Answered
Error in ode function -- not enough input arguments
Change these lines: dEc2adt = @(t, Ec,Tc) (-alfa.*Ek2a(t))./Tc - Ec./Tc; [t2a Ec2a] = ode15s(@(t,Ec)dEc2adt(t, Ec,Tc), t2a, ...

7 years ago | 1

| accepted

Answered
Solvin Differential Algebraic Equations
function main %gaslift systems network tspan = [0:1:60]; % The script for gas lift network model defining initial condi...

7 years ago | 0

| accepted

Answered
Problems with numerical integration with 2 variables
function main Result = integral(@fun,0,pi/2) end function funret = fun(theta) n = numel(theta); funret = zeros(n,1)...

7 years ago | 0

| accepted

Answered
How do you get ten random values between -pi/2 and pi/2
theta = -pi/2 + rand(10,1)*pi

7 years ago | 0

Answered
How do I differentiate this function?
syms Z K gamma eta alpha NRC EOS1 v X R EOS2 NRM Y= Z*K^gamma*((1-eta)*((1-alpha)*NRC^EOS1+alpha*(X^v+R^v)^(EOS1/v))^(EOS2/EOS...

7 years ago | 0

| accepted

Answered
Tensor product of three matrices
M = kron(A,kron(B,C)) or M = kron(kron(A,B),C)

7 years ago | 1

| accepted

Answered
How do I assign part of a matrix to be a variable
A1 = A(1:3,:); A2 = A(4:6,:); A3 = A(7:9,:);

7 years ago | 0

Answered
Solving partial differential system
s= [-v*DuDx(1)-psi*km*(qe-u(2)); km*(qe-u(2))]; function [pl,ql,pr,qr] = pdex4bc(xl,ul,xr,ur,t) Q=2.5; %mL min^-1 A_c=1.96e...

7 years ago | 1

| accepted

Answered
I need matlab code for cot(x) Taylor Polynomial Function
f = @(x)cot(x); a = 5*pi/8; P0 = @(x)f(a)*ones(size(x)); P1 = @(x)f(a)+(- f(a).^2 - 1).*(x-a); P2 = @(x) f(a)+(- f(a).^2 -...

7 years ago | 0

Answered
Integro-differential systems
Solve d(psi)/dt = x(t), psi(0)=0 dx/dt = psi(t) - x(t), x(0) = ? Best wishes Torsten.

7 years ago | 2

Load more