回答済み
Solving boundary value problem for nonlinear differential equation using method of collocation - Gauss sites
Up to my experience, the FORTRAN code "colnew" and "colsys" developed by Ascher are still the best bvp solvers available. Searc...

約2ヶ月 前 | 0

| 採用済み

回答済み
How to solve a set of DAEs with multiple dependent differential variables
The Euler equations are not thus easy to solve. You should consult a book on numerical methods for the equations of gas dynamic...

約2ヶ月 前 | 0

回答済み
Boundary condition in non-linear ODE
function du = ode4(eta,u) theta = u(1); Sr = u(2); % beta dtheta = u(3); % d(theta)/dr ...

約2ヶ月 前 | 1

| 採用済み

回答済み
How can I create a loop for this equation?
L = cumsum(demand); L = L./(1:numel(L)); L = L(4:12)

約2ヶ月 前 | 1

回答済み
How to solve a non-linear system of difference equations ?
Call "fsolve" repeatedly to get (S3,K2,E2), (S4,K3,E3), ... (S(t+2),K(t+1),E(t+1)) A(t) = A(1)*(1+a)^(t-1) is obvious.

約2ヶ月 前 | 0

回答済み
Nested loop problem with the second index
cp = zeros(length(cpx)*length(cpy),2); row = 0; for i = 1:length(cpx) for j = 1:length(cpy) row = row + 1; ...

約2ヶ月 前 | 0

回答済み
how to solve differential equation when the derivative is in right and left side of the equation.
MATLAB solves ODE systems of the form A(t,x)*dx = f(t,x) So put all dx terms on the left-hand side, determine the matrix A and...

約2ヶ月 前 | 0

| 採用済み

回答済み
How to plot a continuous graph from distinct points.
x=[1 3 5 6]; y=10*ones(size(x)); plot(x,y,'o')

約2ヶ月 前 | 0

回答済み
Matlab code for boundary condition
So you mean at x=0, you have y = 0 and dy/dx + dz/dx at x=infinity, you have y=1 and z = b and at t = 0, you have y = 1, z...

約2ヶ月 前 | 0

回答済み
How to find the X-coordinate of the plot knowing the Y-value?
[~,index] = max(max0); frequency_value = f(index)

約2ヶ月 前 | 0

| 採用済み

回答済み
pdepe solver boundary condition setup for discrete measured heat flux data
By setting pl = 0.0; ql = 1.0; qr = Area of the side face of the slab; pr = q(t); in the function where you define the boun...

約2ヶ月 前 | 0

回答済み
How to determine whether point lies within pyramid volume
Another program for your issue: https://de.mathworks.com/matlabcentral/fileexchange/10226-inhull

約2ヶ月 前 | 0

回答済み
Complex values computed by fit.m function (Curve fitting Tool)
Since your fitting problem is linear in the coefficients a1,a2,a3,..., this is all you need to get the best fit parameters: A =...

約2ヶ月 前 | 0

回答済み
Numerical integration of a function containing symbolic characters
syms A B x f = x^2*(A*x+B); result = int(f,x,0,1)

約2ヶ月 前 | 0

回答済み
How do I fit a function to data using LSQNONLIN or LSQCURVEFIT?
function main tempodados = [ 0.0000755000 0.0000790000 0.0000825000 0.0000860000 0.0000895000 0.0000930000 ...

約2ヶ月 前 | 0

回答済み
Help: Finds difficult in solving this coupled ordinary differential equations using ODE45 ??
Put the constants (a,b,d,..) in your first file.

約2ヶ月 前 | 0

回答済み
Axial Dispersion Model, How to solve the following set of equations
Use MATLAB's "pdepe". As boundary condition for q, set pl = 0, ql = 1, pr = 0, qr = 1.

約2ヶ月 前 | 0

回答済み
Trouble while using fsolve function
If you have an ellipsoid given as f(x,y,z)=0 and a point P0 on the ellipsoid P0 = (x0,y0,z0), why don't you just use (df/dx(P0)...

約2ヶ月 前 | 0

回答済み
I know a certain y1 and I want to find the respective x1.
x1 = fzero(@(z)interp1(x,y,z)-y1,1)

2ヶ月 前 | 3

回答済み
ode23 , matrix equation , 2nd order DE
Convert the system to a first order system and write it as M*y' = f(t,y) Then use the mass-matrix option of the ODE solvers to...

2ヶ月 前 | 0

回答済み
matrix vector multiplication complex number
b = [ 2 ,complex(1,-1)].' instead of b = [ 2 ,complex(1,-1)]'

2ヶ月 前 | 1

| 採用済み

回答済み
How to tell ode15s to change its max time step for a specific short time range?
Integrate from 0 to 0.05, restart the solver and solve from 0.05-0.1, restart the solver and solve from 0.1 - 20. Every time you...

2ヶ月 前 | 1

| 採用済み

回答済み
How can I create a handle-function with a double summation on 201 variables (40401 terms)?
FUN = @(W) (W.*sigma).'*C*(W.*sigma)

2ヶ月 前 | 0

| 採用済み

回答済み
Efficient way to compute a double integral within a double integral
function main l1 = ...; u1 = ...; l2 = ...; u2 = ...; value_outer_integral = integral2(@fun,l1,u1,l2,u2) end ...

3ヶ月 前 | 0

| 採用済み

回答済み
Finding point of intersection between a line and a sphere
Sphere: (x-xs)^2 + (y-ys)^2 + (z-zs)^2 = R^2 Line: [x y z] = Pm + l*normal Thus (Pm(1)+l*normal(1)-xs)^2 + (Pm(2)+l*normal(...

3ヶ月 前 | 2

| 採用済み

回答済み
Numerical integral over the whole spherical volume of a crystallite
Nd = 1e23; phi = 20; Ld = 18e-9; R = 40e-9; fun = @(r) 4*pi*r.^2.*(1-exp(phi + 1/6*(r/Ld).^2)); value_integral = Nd*integra...

3ヶ月 前 | 1

| 採用済み

回答済み
Numerical integration with many parameters.
function main L = 1; T = 100; r = 0.03; I1 = 0.5; p = 0.005; epsilon = 0.5; beta = 0.1; rho = 0.5; ...

3ヶ月 前 | 2

| 採用済み

回答済み
How to write a code for a bounded periodic function?
t(1) = 0; y1(1) = 600; y2(1) = 1000; h = 0.5; t_end = 5; t = 0:h:t_end; a = 2; c = 3; alfa = 10^-3; gamma = 6*10^-3; f...

3ヶ月 前 | 1

| 採用済み

回答済み
Probability distribution of a multiple variable sum
Take samples from your empirical data and use Monte-Carlo-simulation to determine the above probability. This code should help ...

4ヶ月 前 | 1

| 採用済み

回答済み
How can we provide minimum distance i.e. 20 between each random generated node?
I think Jan Simon's answer will at least partially solve your problem: https://de.mathworks.com/matlabcentral/answers/142322-fi...

4ヶ月 前 | 1

Load more