回答済み
Anyone knows why this keeps running forever
It would be much better to use a single for loop to implement this function. The two while loops and the if statement do not see...

6年以上 前 | 0

回答済み
Matrices in ODE function
I find it a bit odd to follow your system of equations, your derivities are given in x1, x2, and x3 and you are trying to find y...

6年以上 前 | 0

回答済み
Solving nonlinear 2nd order differential equation with signum using ODE solvers?
Hi Jimmy, here is my version of the solution, see if it matches what you are expecting. The values that you choose for m, r and...

6年以上 前 | 0

回答済み
Can someone please help me(provide me) with Bilinear LMS algo along with MATLAB code?
Here is the code. function [e,A,B,C,Wa,Wb,Wc,ya,yb,yc] = BilinearLMS(x,y,d,mua,mub,muc,M1,M2) ...

6年以上 前 | 0

回答済み
how to compute average power of the generated sinusoidal signal?
Are you saying that px = 1/(2×N+1)[(Acos(wt))^2 + (Acos (2wt))^2 +... (Acos(N*wt))^2] should equal a single number? How possible...

6年以上 前 | 0

回答済み
hello, I have three complex differential equations (dTb/dt , dTw/dt , dTg/dt) and I solved it using runge kutta method , matlab run successfully but all result on commend window is "NoN",I'm sure from my equations.
Hey Muhammad, Is it possible for you to attach your three complex equations as they were given? The reason why I'm asking is t...

6年以上 前 | 0

| 採用済み

回答済み
how to compute average power of the generated sinusoidal signal?
Try this code, just an extension of your code. clear variables close all; lim1 = -10;% no need to have t in pi ...

6年以上 前 | 0

回答済み
Is there an easy way to make numerical simulations of the ODE of the form dx1/dt=x1(2-x1-x2), dx2/dt=x2(3-x1-x2-x3) for any xn?
See code comments for answers. clear variables close all; % dx must have 5 terms for n = 5 % the number terms i...

6年以上 前 | 0

| 採用済み

回答済み
could anyone help me how to solve the issue.
Try using the text funation in matlab.

6年以上 前 | 0

回答済み
Solving differential equation in matlab
Try matlab ode45 function or apply Renge Kutta method. You actually do have a simple equation that should be solved by either of...

6年以上 前 | 0

回答済み
How to plot Carrier and Message Signal
Try something like this : clear variables close all fc = input('carrier frequency') fm = 4 %Hz Ac =...

6年以上 前 | 0

回答済み
Runge-kutta calculation giving lower order of accuracy than expected
Try using a higher order to see if your result will improve. RK4 usually gives better convergence. Check this link https://w...

6年以上 前 | 0

回答済み
Hi, I'm trying to solve the heat eq using the explicit and implicit methods and I'm having trouble setting up the initial and boundary conditions.The equation is : du/dt=d^2u/dx^2, initial condition u(x,0)=x, boundary conditions u(0,t)=1 du/dx(1,t)=1
The matlab code posted here is based on the formulation of the explicit method of the finite difference method. I tried to compa...

6年以上 前 | 1

| 採用済み

回答済み
Equation: X”-6x’+13x = t+3sin(t) Initial Value: x(0)=1 t є [0,1] Method: Runge-Kutta II Step Sizes: h=0.1 , h=0.03
The first thing you need to do is to write the ode as two first order equations and use the code below. You will be required to ...

6年以上 前 | 1

| 採用済み

回答済み
1D time dependent mass transfer and reaction in a very small slab
By carefully defining the parameters of your function in matlab using the pdepe solver, I was able to obtain the image below. Do...

6年以上 前 | 0

| 採用済み

回答済み
how to solve nonlinear coupled dgl second order
Here is an example that I have obtained using ode45; the solution seems quite logical since we a dealing with sine waves. ...

6年以上 前 | 0

| 採用済み

回答済み
how to solve nonlinear coupled dgl second order
<</matlabcentral/answers/uploaded_files/110879/NonlinEquation.jpg>>

6年以上 前 | 0

回答済み
how to solve nonlinear coupled dgl second order
Can you provide some values for the constants?

6年以上 前 | 0

回答済み
How to solve system of coupled second order linear differential equations in Matlab?
I would recommend that you post your equations as an attachment. Problems of this form are usually not clear when written as a c...

6年以上 前 | 0

回答済み
When I try to plot the convolution, i get an error stating that the vectors must be the same length.
The length of the output signal that results from the convolution of two input signals is equal to the sum of the lengths of the...

6年以上 前 | 0

回答済み
How to solve and write system of differential equations?
R1 = 500; R2 = 800; R3 = 1000; R4 = 200; C1 = 0.1; C2 = 0.1; V = 180; F = @(t,y)[y(1); (y(1)/R1...

6年以上 前 | 1

| 採用済み

回答済み
How to solve and write system of differential equations?
Because the differential equation in line 1 is coupled, we will have to find a way to separate dv/dt from dI/dt.

6年以上 前 | 0

回答済み
How to solve and write system of differential equations?
ÌCheck your function dxdt, it has two inputs but uses othe variables that aren't defined. Some of these are V, R1, R2. t is an i...

6年以上 前 | 0

回答済み
Bungee jumping problem matlab code with Runge kutta 5th order
Were you specifically asked to use the 5th order? I find this as a lot of work in typing. Is this the formulation that you are t...

6年以上 前 | 0

回答済み
How do I create a user defined function using the fourier series?
Your function wasn't designed to ask the user for inputs as you are attempting to do, although we can alter it to do that. To r...

6年以上 前 | 0

回答済み
How do I create a user defined function using the fourier series?
I made a little error, here is the correction. Replace the expression for F with the following line. F = F + an*cos(n*pi*x...

6年以上 前 | 0

回答済み
How do I use an If-statement when using RK4?
Hi Tanmoy, sorry that I haven't been able to get back to you since our last communication. In the following line of your c...

6年以上 前 | 0

回答済み
How do I create a user defined function using the fourier series?
I would recommend a for loop to solve this problem. Try something like this : function fx = fseries(c,N,x0,x1) % All ...

6年以上 前 | 1

| 採用済み

回答済み
Solving equation in Matlab
See if you can make this code produce the results you want. The program by its self is right, but there might be some issues wit...

6年以上 前 | 0

さらに読み込む