Answered
Find the values(coefficient) of the cubic polynomial
help polyfit Best wishes Torsten.

12 years ago | 1

| accepted

Answered
Exponential Linear Regression fitting model?
Take LOG on both sides: LOG(Y)=LOG(b)-a/x. Then fit LOG(Y) against 1/x using polyfit for a polynomial of degree 1. Alte...

12 years ago | 0

| accepted

Answered
Using ODE solvers with interlinked variables
Just insert A(t)-B(t) for dB(t)/dt in the second equation: dA(t)/dt=B(t)+(A(t)-B(t))-A(t)*(1-c) Simplifying the right-hand...

12 years ago | 0

Answered
Using ODE's in space and time
Use reshape to transform your 2d-matrix to a column vector: reshape(A,[neq*nx,1]) where neq is the number of differential ...

12 years ago | 0

Answered
Doubt regarding ode45 plotting
Please make more clear what you try to plot. As far as I can see, delk is a model parameter (scalar). B is a vector (solu...

12 years ago | 0

| accepted

Answered
Second order differential equations numerically.
y1(x) = 1/6 c_2 (3 sin(x)+sqrt(3) sin(sqrt(3) x))+1/6 c_4 (3 sin(x)-sqrt(3) sin(sqrt(3) x))+1/2 c_1 (cos(x)+cos(sqrt(3) x))+1/2 ...

12 years ago | 0

Answered
How to solve with Matlab a PDE with periodical boundary conditions.
Discretize your PDE in space and solve the resulting System of ordinary differential equations using ODE15s (method-of-lines app...

12 years ago | 0

Answered
How to code the following expression in MATLAB using Newton Rapshon Method
MATLAB's "fzero" or "fsolve" can be used to solve the above equation. Best wishes Torsten.

12 years ago | 0

Answered
Derivatives of Cost Function for Minimizing
If you take a look at your cost function, I can tell you without taking any derivatives that all vectors (A1,A2,A3,A4)=(c,c,c,c)...

12 years ago | 0

Answered
How do you plot a differential equation?
ezplot(y,[0 10]); Best wishes Torsten.

12 years ago | 0

| accepted

Answered
lsqnonlin question curve fitting
Although I read your question several times, I still don't understand what you are asking for. Could you provide a small exam...

12 years ago | 0

Answered
Minimization of a Integral function
Use MATLAB's "fminunc" with the objective function being your integral expression or "fmincon" with the objective function being...

12 years ago | 1

Answered
nonlinear time dependent PDE
Try MATLAB's "pdepe". Best wishes Torsten.

12 years ago | 0

Answered
generating random variables with expected value of one and finite variation.
a = 1; y = a*randn(1000,1) + 1; creates 1000 normally distributed random numbers with expected value of 1 and variance a...

12 years ago | 0

| accepted

Answered
Using BVP solver to solve 4th order non-linear ODE
According to your differential equation, y4'=(K2(y1)*y3+A(y1)*(y2)^2)/K1; Best wishes Torsten.

12 years ago | 0

Answered
MATLAB ODEs using ode45
The ODE function file must be of the form dydt = myfun(t,y) In all three cases above, your function file differs from this...

12 years ago | 0

Answered
Solving an integral with variable as upper limit and plotting the solution
Your function is equal to sqrt(pi)/2*(1+erf(x)) Best wishes Torsten.

12 years ago | 0

| accepted

Answered
Solving a coupled system of differential equations with varying orders.
y1'=y2 y2'=(-b*y2-k*y1-mu*(y1-y3)+f0)/m y3'=(Lambda*y5-mu*(y3-y1))/Lambda y4'=y5 y5'=(-B*y5-mu*(y3-y1)-K*y4+fs)/M ...

12 years ago | 0

| accepted

Answered
How can I solve systems of PDEs with three independent variables by using the pdepe solver of the MATLAB?
You will have to discretize your equations in space (x- and y-coordinate) and solve the resulting system of ordinary differentia...

12 years ago | 1

| accepted

Answered
please, I need help! I don't find the solution to my ODE using bvp4c solver.
a) If alpha is to be determined by bvp4c, then 1. Change the call to bvp4c from sol = bvp4c(@odes,@bcs,solinit,alpha); ...

12 years ago | 0

Answered
Doubly stochastic matrix in linear programming
You mean how you can formulate the above problem for linprog ? min: f'x s.c. A*x-Z*y=0 sum_i z_ij = 1 sum_j z_i...

12 years ago | 0

| accepted

Answered
The number of indeterminates exceeds the number of equations. Trying to parameterize solutions in terms
You have to put _both_ differential equations (for V1 and Vex) in _one_ call to dsolve, not in two _separate_ calls. Example:...

12 years ago | 0

Answered
Coupled ODE-PDE system with method of lines.
I'm not sure I understand your problem. The coupling between PDE and ODE is automatically introduced by the dependence of f o...

12 years ago | 1

Answered
Exchange Problem with PDEPE solver
There is no ready-to-use solver in MATLAB for this kind of problem. You will have to discretize the PDEs in space and solve t...

12 years ago | 0

| accepted

Answered
why mvnpdf returns complex values?
% FUNCTION Y = MVNPDF(X, [MU], [SIGMA]) % % X & MU: vectors of same size % sigma: square matrix % % defau...

12 years ago | 0

| accepted

Answered
How is this an exponential curve?
The above code is an implementation of the explicit Euler method to solve the differential equations y'=-y, y(0)=3 y'=-y, ...

12 years ago | 1

Answered
create function of Triangle
http://en.wikipedia.org/wiki/Law_of_cosines Best wishes Torsten.

12 years ago | 0

Answered
Can a function in matlab return a polynomial or an expression?
if Input == 3 f=@(x)(3*x-3); end Best wishes Torsten.

12 years ago | 1

Answered
Using pdepe to solve coupled PDEs with boundary condition with flux listed at two locations (implicit boundary condition)
Hi Yuri, I suggest you solve the equation (∂n_e (x=0,t))/∂x)- Constants*exp(function of ∂n_e (x=0,t))/∂x))=0 (1) in bc...

12 years ago | 0

Answered
Could Anybody Help me with Second Degree Differantial equation with four nodes ??
Use the elliptic solver of the PDE Toolbox. Best wishes Torsten.

12 years ago | 0

Load more