Risposto
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...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

Risposto
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) ...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

| accettato

Risposto
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 ...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

| accettato

Risposto
could anyone help me how to solve the issue.
Try using the text funation in matlab.

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

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

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 1

| accettato

Risposto
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 ...

circa 6 anni fa | 1

| accettato

Risposto
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...

circa 6 anni fa | 0

| accettato

Risposto
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. ...

circa 6 anni fa | 0

| accettato

Risposto
how to solve nonlinear coupled dgl second order
<</matlabcentral/answers/uploaded_files/110879/NonlinEquation.jpg>>

circa 6 anni fa | 0

Risposto
how to solve nonlinear coupled dgl second order
Can you provide some values for the constants?

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 1

| accettato

Risposto
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.

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

Risposto
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...

circa 6 anni fa | 0

Risposto
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 ...

circa 6 anni fa | 1

| accettato

Risposto
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...

circa 6 anni fa | 0

Carica altro