Answered
solve h(t)=-0.12t^4+12t^3-380t^2+4100t+220 ,using matlab
You mean https://de.mathworks.com/help/matlab/ref/roots.html ? Best wishes Torsten.

9 years ago | 0

| accepted

Answered
solve an equation with incomplete gamma function
https://de.mathworks.com/help/matlab/ref/gammaincinv.html Best wishes Torsten.

9 years ago | 0

| accepted

Answered
Is it possible to numerically solve the following nested integral e.g. with a different syntax in MATLAB: nintegrate(f(y)/(nintegrate(g(x,y), x, a, b)), y, c, d)
Try function main g=@(x,y) ...; f=@(y) ...; a=...; b=...; c=...; d=...; sol=integral(@(y)fun_y(y,g,f,...

9 years ago | 0

| accepted

Answered
Inverse CDF for Generalized Linear Model (GLM) with Binomial Distribution
Solve glmval(Voltage) - (given probability) = 0 for "Voltage" using "fzero", e.g. Best wishes Torsten.

9 years ago | 0

Answered
How to calculate number of function evaluation used?
When n=5, f and fprime have been called 5 times each, namely to evaluate f(x1),f(x2),...,f(x5), fprime(x1),fprime(x2),...,fprime...

9 years ago | 0

Answered
integrate over the solution of a linear system
Why not trying "integral" ? Best wishes Torsten.

9 years ago | 0

Answered
How can I solve a differential equation on non-fixed interval?
Use the "Event"-facility of the ODE-integrators and stop integraton if y=1. Example under https://www.mathworks.com/exampl...

9 years ago | 0

| accepted

Answered
Linear programming with complex inequalities
Multiply the >= inequalities by (-1). Best wishes Torsten.

9 years ago | 1

| accepted

Answered
What is the difference between the given matrix multiplications: A*B and A.*B (A and B are both matrices)
a*x is the "usual" matrix-vector multiplication, a.*x is elementwise multiplication. In your case, every element of row i of a i...

9 years ago | 3

| accepted

Answered
"Inputs must be floats, namely single or double"
function main tspan=[0 5]; y0=[1; 1; 1; 0]; [t,y]=ode45(@fun,tspan,y0) function dy=fun(t,y) dy=zeros(4,1); ...

9 years ago | 0

| accepted

Answered
When using symbolic solver I seem to get the strange answer.
2^(1/2) / 2 = 1 / 2^(1/2) ... Best wishes Torsten.

9 years ago | 0

| accepted

Answered
calculate the function in vector.
output= ([(input.').^0 (input.').^1 (input.').^2 (input.').^3 (input.').^4 (input.').^5]*([1.0000 1.0001 0.4991 0.1703 0.0349 0....

9 years ago | 0

Answered
I have a problem with ode solvers for 3 ode.
ode45 has problems to integrate your system of ODEs for a certain a-value. That's why x has dimension smaller than 30001, an...

9 years ago | 0

Answered
Can someone check my for loop?
x=L/2; tvec=0:0.002:3; for i=1:numel(tvec) t=tvec(i); w(i)=0.0; for j=1:100 ...

9 years ago | 0

Answered
how to get answers in 3 equations with 3 unknowns by using fsolve
The examples under https://de.mathworks.com/help/optim/ug/fsolve.html should help you to solve your system of equations. ...

9 years ago | 0

Answered
how I can solve linear programming with quadratic constraints and linear constraints?
Use fmincon: https://de.mathworks.com/help/optim/ug/linear-or-quadratic-problem-with-quadratic-constraints.html Best wishe...

9 years ago | 0

Answered
How can I obtain points on a curve fitting polynomial function?
https://de.mathworks.com/help/curvefit/feval.html Best wishes Torsten.

9 years ago | 0

| accepted

Answered
Simple ODE 2nd order with ODE45 - Where's my problem?
[t,phi]=ode45( @(t,y)rhs(t,y,w), t, [initial_phi initial_dphidt]); And convert degress in radians in your initial condition...

9 years ago | 1

Answered
How to solve a differential equation with non-constant coefficients
Take a look at the example ODE with Time-Dependent Terms under https://de.mathworks.com/help/matlab/ref/ode45.html B...

9 years ago | 0

Answered
How to solve differential equation
Choose a grid of stepsize deltax: -xa=x0<x1<x2<...<x_n=xb with x_(i+1)-x_i=deltax. I suggest you use backward differencing fo...

9 years ago | 0

Answered
How to generate random points in a particular angle ?
Generate a random point in a box that contains your conic. Accept the random point if it falls into the conic, otherwise reject ...

9 years ago | 0

Answered
How do I solve an equation numerically for a grid of values and then plot the relationship with the dependent variable?
beta=...; v=...; alpha=...; gamma=...; g=...; eps=...; sigma=...; c0=...; pin=linspace(0.95,1.08,30); ...

9 years ago | 0

| accepted

Answered
Solving DAEs problem with different initial conditions at different times of simulation using ode15s
No other way than to solve them one after the other. Best wishes Torsten.

9 years ago | 0

Answered
How to solve the LP problem in MATLAB using linprog?
f is not a unit vector, f is the vector with all elements equal to 1. For the condition M*r>=0 set A=-M, b=0. Best wishes ...

9 years ago | 1

| accepted

Answered
3D Poisson dense matrix for a given N
https://github.com/gchavez2/test_matrices Best wishes Torsten.

9 years ago | 0

Answered
Help getting birthday paradox simulation working
Generate "nop" random integers between 1 and 365 using MATLAB's "randi" and use the "unique" command to see whether the generate...

9 years ago | 0

| accepted

Answered
How to solve an ODE when some of the parameters change based on time of year...
Your idea of alternating between the two function routines "@Winter and @Summer" for the ODE-integrator is not as tedious as it ...

9 years ago | 0

Answered
differentiated system of equations with input at one of the variables
syms a b c d x=1; f_1=a*x^3+b*x^2+c*x+d; f_2=3*a*x^2+2*b*x+c; f_3=6*a*x+2*b; f_4=6*a; eqns=[f_1==0,...

9 years ago | 0

| accepted

Answered
A*x = b with maximal x
Use "fmincon". Best wishes Torsten.

9 years ago | 0

Answered
How to integrate matrices?
Use "trapz". Best wishes Torsten.

9 years ago | 1

Load more