Answered
How can i integrate numerically by mantaining some parameters (need to differentiate later)
Manually differentiate "fun" with respect to d. If the result is "dfun(x,d)", then D = @(d) integral(@(x)dfun(x,d),0,pi,...

9 years ago | 0

| accepted

Answered
How can i integrate numerically by mantaining some parameters (need to differentiate later)
syms x d Rs=...; Rc=...; fun = 1/(((d+Rs+Rc)^2*sin(x)^2-Rs^2)^2); I=int(fun,x,0,pi); D=diff(I,d); Best wish...

9 years ago | 0

Answered
Double Integral with interpolateSolution() from PDE solver in MATLAB
From the documentation: _The function f must accept two arrays of the same size and return an array of corresponding values. ...

9 years ago | 0

Answered
How to find a matrix of solutions for linear system
[X1 X2 X3 X4]=ndgrid(77,70.9:0.5:76.9,715:725,91:0.2:93]; B=[X1(:) X2(:) X3(:) X4(:)].'; A=[42.4 83 100.1 100;46.4 77.2 ...

9 years ago | 0

Answered
Solve is not returnig solution - matlab
function main x0=ones(5,1); sol=fsolve(@myfun,x0) function F=myfun(x) A=[99.23;100.05;91;107.71;104.1]; B=[...

9 years ago | 1

Answered
Error using PDEPE Function (Column Vector Mismatch)
Check the size of c,f and s: https://de.mathworks.com/help/matlab/ref/size.html If they don't have dimension (2x1) each, s...

9 years ago | 0

Answered
Solving system of differential equations (28 equations, 75 constants, and 28 initial conditions)
It's very unlikely that an analytical solution exists for a system of 28 differential equations. So use a numerical solver, e...

9 years ago | 1

| accepted

Answered
Error using * Inner matrix dimensions must agree.
f(x) with a scalar argument x returns a vector of length 6. For two vectors of length 6, the product f(xm)*f(xu) is not defin...

9 years ago | 1

Answered
double integral with singular point (not detected by integral2)
With pencil and paper, I get a value of 4*ln((sqrt(2)+1)/(sqrt(2)-1)) for your integral. The singularity at (x,y)=(...

9 years ago | 0

| accepted

Answered
Smooth Function not working
Type "ver" to see whether you have a licence for the *Curve Fitting Toolbox*. Best wishes Torsten.

9 years ago | 0

Answered
How can I solve the following steady state Nernst Planck Poisson system by pdepe.m program?
Since your problem is stationary, use "bvp4c" instead of "pdepe". Best wishes Torsten.

9 years ago | 0

Answered
How do I truncate a normally distributed random variable?
xtl = 2.0; % left point of trunction xtr = Inf; % right point of truncation x = -4:0.1:4; y = normpdf(x); yt = no...

9 years ago | 1

| accepted

Answered
Curve fitting → z = A*exp(Tb/x)*(Cg/(Cg-y))^(C1+y*C2)
Choose the lower bound for Cg to be at least as big as the maximum value for y (i.e. 0.96). Best wishes Torsten.

9 years ago | 0

Answered
How do I truncate a normally distributed random variable?
https://de.mathworks.com/help/stats/prob.truncatabledistribution.truncate.html Best wishes Torsten.

9 years ago | 0

Answered
Error in Ode15s
Take a look at the examples -PASS EXTRA PARAMETERS TO ODE FUNCTIONS (you didn't do that correcty in your code above) and...

9 years ago | 0

Answered
Solving a transcendental equation
n = logspace(6,13,20); V_gs = V_0+V_T*log(exp(n/g*k_B*T)-1)+V_ox; semilogy(V_gs,n) Best wishes Torsten.

9 years ago | 0

Answered
How to plot the l2 norm circle?
theta=0:2*pi/100:2*pi; x=cos(theta); y=sin(theta); plot(x,y) Best wishes Torsten.

9 years ago | 0

| accepted

Answered
how to solve the given equation using multiple values of D?
Use (1-D).^2 instead of (1-D)^2 in your definition of "eqn". And remove the line syms eqn D it's sup...

9 years ago | 0

Answered
Best curve fitting for measured data
help lsqcurvefit Best wishes Torsten.

9 years ago | 0

| accepted

Answered
How can i flip a (M x N) matrix to (N x M)?
https://de.mathworks.com/help/matlab/ref/transpose.html Best wishes Torsten.

9 years ago | 0

Answered
Solving a sum of series of exponential function with a sum of series of cosine function inside
h=...; epsilon=...; r=1:2^h-1; v=1:h-1; result=sum(exp(epsilon*sum(cos(pi/2^(h-1)*(2.^v).'*r)))); Best wishes ...

9 years ago | 0

| accepted

Answered
Solving equations in terms of expression
Since no symbolic solution is in sight for your system, use "vpasolve" instead of "solve". Or try another numerical solver li...

9 years ago | 0

Answered
How to fit a equation to a data set?
Use lsqnonlin. Since it minimizes sum_i f(x_i,y_i,p)^2 instead of sum_i (y_i - f(x_i,p))^2, the fit model does not need to be...

9 years ago | 0

Answered
How does one specify a real datatype when attempting to fit real parameters to a complex function with lsqcurvefit?
You won't get complex values for C if you fit real(y) to real(f(x)) and imag(y) to imag(f(x)) simultaneously. In this case, ...

9 years ago | 3

| accepted

Answered
Solving a delay differential equation with ddesd
In my opinion, there is no available DDE solver that can cope with your problem. The problem is that the length d of your de...

9 years ago | 0

| accepted

Answered
How to solve differential equation with variable input parameters
z0=0 z1=z0+dt*(w*v1*z1+1) -> z1=(z0+dt)/(1-dt*w*v1) z2=z1+dt*(w*v2*z2+1) -> z2=(z1+dt)/(1-dt*w*v2) ... In general:...

9 years ago | 1

| accepted

Answered
I have this message although I can't see where is the problem
fun = @(x)root4d(x(1),x(2),x(3),x(4)) Best wishes Torsten.

9 years ago | 0

| accepted

Answered
Fourier transform of mollifier
f = exp(1/(x^2-1))*(abs(x)<1) Best wishes Torsten.

9 years ago | 1

| accepted

Answered
boundary conditions for pdepe
pl = ul; ql = 0.0; pr = ur-10; qr = 0.0; Best wishes Torsten.

9 years ago | 1

Answered
how to compute the limit as N goes to infinity of a summation from -N to N
"symsum" together with "limit" do not succeed ? https://de.mathworks.com/help/symbolic/symsum.html https://de.mathworks.c...

9 years ago | 0

Load more