Question: i am trying to do the problem in the second picture but i keep getting errors- please help. also if my code is wrong anywhere
i am trying to do the problem in the second picture but i keep getting errors- please help. also if my code is wrong anywhere will you fix it please :) MAE_Hw_4_2. mx Class_12. mx + %% Analyze % Basis: 17 function Class 12 tspan = [0 10); x0 = [1 0 0); [T,X] = ode45 (@odefun, tspan, x0); plot(T,X) S = [T,X] end function dm = odefun(t, x) dm = (-1/2*x(1); 1/2*x(1) - 1/4*X(2); 1/4*X(2) - 1/6*x(3)]; Lend Command Window >> Class_12 Error: File: Class 12.m Line: 17 Column: 10 Function with duplicate name "Class_12" cannot be defined. script / Plot the following differential system in matlab dt oxx m2 -1x1 x2 om - 1x2 - 6x3 where x1(0) = 1; x2(0) = 0; x360) = 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
