Question

In: Computer Science

i wish to solve the equations v'=v^3/3-w+i, w'=g(v+a-bw) with a=0.8, b=0.7, g=0.08, i=0.5 using ode45 in...

i wish to solve the equations v'=v^3/3-w+i, w'=g(v+a-bw) with a=0.8, b=0.7, g=0.08, i=0.5 using ode45 in matlab. i solved in on paper but i don't know how to type the codes in matlab.

i googled this but for one unfamiliar with the code, it is hard to fathom what they are solving i also would like the code to show the plots of both variables changing with time and the phase plots of both variables.

Solutions

Expert Solution

`Hey,

Note: If you have any queries related to the answer please do comment. I would be very happy to resolve all your queries.

clc

clear all

close all

format long

a=0.8;

b=0.7;

g=0.08;

i=0.5;

f=@(t,y) [y(1)^3/3-y(2)+i;g*(y(1)+a-b*y(2))];

[T,Y]=ode45(f,[0,1],[1,2])

plot(T,Y);

figure;

plot(Y(:,1),Y(:,2));

Kindly revert for any queries

Thanks.


Related Solutions

Solve the following system of equations using Gaussian or​ Gauss-Jordan elimination. w + x + y...
Solve the following system of equations using Gaussian or​ Gauss-Jordan elimination. w + x + y + z = -2 2w +2x - 2y - 2z = -12 3w - 2x + 2y + z = 4 w - x + 7y + 3z = 4
Solve the following dissolution exercises: A. 3 aqueous solutions are mixed: 50 mL of 10% w/v...
Solve the following dissolution exercises: A. 3 aqueous solutions are mixed: 50 mL of 10% w/v HCl, 35 mL of 3.2% w/v NaCl and 65 mL of 13% w/v KCl, which is the final concentration of the solution in %p/v with respect to H +, Na +, K +, Cl- B. What volumes of 8M, 5M and 3M HCl should be mixed to prepare 1 L of 6M HCl C. It is necessary to prepare 35 mL of 15% w/v...
Solve the following equations for the unknown. 1. G - 24 = 75 2. 3(2c -...
Solve the following equations for the unknown. 1. G - 24 = 75 2. 3(2c - 5) = 45 3. n/4 - 7 = 8 For the following statements, underline the key words and translate into an expression. 4. 15 less than one-ninth of P 5. 3 times the quantity of H less 233 For the following statement, underline the key words and translate into an equation. 6. A number increased by 11 is 32 7. The sum of 2...
Solve the following equations for the unknown. 1. G - 24 = 75 2. 3(2c -...
Solve the following equations for the unknown. 1. G - 24 = 75 2. 3(2c - 5) = 45 3. n/4 - 7 = 8 For the following statements, underline the key words and translate into an expression. 4. 15 less than one-ninth of P 5. 3 times the quantity of H less 233 For the following statement, underline the key words and translate into an equation. 6. A number increased by 11 is 32 7. The sum of 2...
Write a function to solve a system of linear equations of the form Ax= b using...
Write a function to solve a system of linear equations of the form Ax= b using the iterative Gauss-Seidel method. You are free to use any basic MATLAB operation to implement the algorithm (i.e. you may use any combination of loops, indexing, math, etc.), but avoid “built-in” solution methods — you would not be allowed to use the GaussSeidel function if such a function existed. The function must also test for a number of possible issues. If an issue is...
I wish to use a B-type thermocouple to measure a temperature of 16000C. I am using...
I wish to use a B-type thermocouple to measure a temperature of 16000C. I am using 1000C (boiling water) as my reference temperature. What is the emf expected at 16000C ? (Refer to the NIST thermocouple database): a) 11.233 mv b. 0.033 mV c. 11.263 mV d. None of the above
3. Solve the following differential equations by using LaPlace transformation: 2x'' + 7x' + 3x =...
3. Solve the following differential equations by using LaPlace transformation: 2x'' + 7x' + 3x = 0; x(0) = 3, x'(0) = 0 x' + 2x = ?(t); x(0-) = 0 where ?(t) is a unit impulse input given in the LaPlace transform table.
How do I solve this system of equations without using a calculator or fancy matrix math?...
How do I solve this system of equations without using a calculator or fancy matrix math? v1 = 1.8 v2 = ? v3 = ? (1) v1 = 1.8 (2) 7150v2+1350v3  = 12780 (3) 7150v22 + 1350v32 = 23166
1. Solve the initial value problem below using the method of Laplace transforms. 56w′′−4w′+4w=16t+56​, w(−3)=2​, w'(-3)=2...
1. Solve the initial value problem below using the method of Laplace transforms. 56w′′−4w′+4w=16t+56​, w(−3)=2​, w'(-3)=2 2. Solve for​ Y(s), the Laplace transform of the solution​ y(t) to the initial value problem below. ty′′−6y′+9y=cos5t−sin5t​, y(0)=4​, y'(0)=4
solve for matrix B Let I be Identity matrix (I-2B)-1= 1 -3 3 -2 2 -5...
solve for matrix B Let I be Identity matrix (I-2B)-1= 1 -3 3 -2 2 -5 3 -8 9
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT