Answered
How to find three unknowns with two equations?
1. The "==0" is missing in your equations. 2. You have to tell MATLAB which variables to solve for when using the "solve"-com...

10 years ago | 0

| accepted

Answered
??? Error using ==> mldivide Matrix dimensions must agree.
Ew= 1-(Wp./w).^2 Best wishes Torsten.

10 years ago | 0

| accepted

Answered
Second Order Coupled Differential Equations
Can you solve for x'' and y'' , i.e. x''=function1(x,x',y,y') y''=function2(x,x',y,y') ? If yes, you can use any ODE s...

10 years ago | 0

Answered
How can i solve this system ?
A = 2*omegaj*omegak/(omegaj^2-omegak^2)*[Y*I/omegak -Y*I/omegaj ; -m*omegak m*omegaj]; b = [cs*I ; ca]; zeta = A\b; z...

10 years ago | 1

| accepted

Answered
How to solve vectorial differential equation with ode45
In ODE, v must be a vector of length (2*N) (not a matrix of size (N,2)). The first N components could contain x0, the last N ...

10 years ago | 1

| accepted

Answered
How can i solve this system ?
Hint: The inverse of [a b ; c d] is 1/(a*d-b*c)*[d -b; -c a] Best wishes Torsten.

10 years ago | 0

Answered
Trouble while solving System of Equations using fmincon
Maybe the set of feasible points for your problem is empty. Since your constraints are linear in the unknowns, I suggest to u...

10 years ago | 0

| accepted

Answered
ode45 function error using exist
My guess is that the variable "ode" is not a string. Best wishes Torsten.

10 years ago | 0

Answered
Find length of intersection between 2 points and a sphere
https://en.wikipedia.org/wiki/Line%E2%80%93sphere_intersection The length L is simply abs(d1-d2) where d1, d2 are the two sol...

10 years ago | 1

Answered
How do I create a function with a variable number of terms for nlinfit?
Define "model" in an extra function, not as a function handle. Best wishes Torsten.

10 years ago | 0

Answered
How to write and solve system of differential equations?
This is a typical problem for MATLAB's "pdepe". Best wishes Torsten.

10 years ago | 1

Answered
how to solve 3 equations with 2 unknowns in matlab?
Of course you won't get a solution that exactly solves all three equations. But you will get a "best" solution in the least-s...

10 years ago | 0

| accepted

Answered
Fitting data with integral function
Try f = @(x,xdata,z) x(1)./(1+x(1)*xdata*z); fit = @(x,xdata) integral(@(z)f(x,xdata,z),0,10,'ArrayValued',true); x0 ...

10 years ago | 0

Answered
Coupled Equations with spatial and time evolution using ode45
Split in real and imaginary part and solve the system of 4 equations using pdepe. Best wishes Torsten.

10 years ago | 0

Answered
How to solve the system of simultaneous linear equation using QR decomposition?
http://www.math.utah.edu/~pa/6610/20130927.pdf Best wishes Torsten.

10 years ago | 0

| accepted

Answered
Is it possible to extract the time and two output variables from ODE45?
The easiest way is to reculculate new_output from t and z after the call [t,z] = ode45(@odess, t_step, z0, opts); Bes...

10 years ago | 0

Answered
Implicit Finite difference 2D Heat
1. The matrix A in equation (15) also has gaps as indicated by the two dots. 2. For fixed temperatures, add T_1,j= T1_f...

10 years ago | 1

| accepted

Answered
I need to solve 3 differential equation with five variables and two constraints?
Use ODE15S, e.g., or any other ODE integrator that has the mass-matrix option. Best wishes Torsten.

10 years ago | 0

Answered
The Curve Fitting result is strange
Use y=c1*x+c2 as general model for your data, not a function with a singularity. Best wishes Torsten.

10 years ago | 0

Answered
Can someone please help me with this error?
d=t*100; d=uint8(d); rotm2d=rotm3d(:,:,d); Best wishes Torsten.

10 years ago | 0

| accepted

Answered
I need to know how to put the s variable of pdefun (from pdepe solver) as a function of x and time
1. pdepe calls pdef for arbitrary times, not only those specified in tspan. 2. sol = pdepe(m, @(x,t,DuDx)pdef(x,t,DuDx,S,xmes...

10 years ago | 0

| accepted

Answered
How can I solve a system of nonlinear equation within an interval and plot it?
if true % code end KI=0:0.01:1; x0=[-pi/2;kiic]; % initial guessing fhandle=@function; % the function op...

10 years ago | 0

Answered
Taylor Series Derivative Approximations
https://mat.iitm.ac.in/home/sryedida/public_html/caimna/ode/taylorseries/taylor.html Best wishes Torsten.

10 years ago | 0

Answered
Coupled PDE system - problem solving
pdepe is not suited to solve mixtures of PDEs and ODEs. You will first have to discretize the PDE in x-direction and solve th...

10 years ago | 0

Answered
DerivativeCheck of supplied Gradient
DerivativeCheck should only be used once before the main calculation starts. This check can be done in interior points where fin...

10 years ago | 0

Answered
Heat transfer problem using FDM
Use two arrays for T (e.g. Told and T), one for the old and one for the new temperatures. Best wishes Torsten.

10 years ago | 0

Answered
Limiting coeficients in fitting function.
Square the coefficient in your model. Best wishes Torsten.

10 years ago | 0

| accepted

Answered
How to generate a triangulation for FEM 1D problem?
x(1)=0*pi; x(2)=0.1*pi; x(3)=0.3*pi; x(4)=0.333*pi; x(5)=0.5*pi; x(6)=0.75*pi;x(7)=1*pi; Best wishes Torsten.

10 years ago | 2

| accepted

Answered
Integral function: scalar to integrate over turns into large vector
"integral" always evaluates your function to be integrated for a _vector_ of phi values. So your function must accept a vecto...

10 years ago | 1

| accepted

Answered
How do I solve this 2nd order ODE with time-dependent parameters?
Try syms t y %% --- Initial conditions --- phi = 12.5e-3; v0 = 300; e = 3e-3;...

10 years ago | 1

Load more