Borrar filtros
Borrar filtros

스크립트에서 ode45 함수를 지원하지 않는다고 합니다

1 visualización (últimos 30 días)
지연 백
지연 백 el 10 de Dic. de 2022
Respondida: Tushar el 20 de Mzo. de 2023
tinv = [0 10]; y0=[1;1];
[x,y]=ode45(@myode2,tinv,y0);
plot(x,y),grid,xlabel('x'),ylabel('y(t)')
function dy=myode2(t,y)
dy = [y(2); -y(2)+y(1)];
end
이 함수를 풀려고 하는데 자꾸 스크립트에서 ode45 함수를 지원하지 않는다고 떠서요
다른 친구들한테 물어보니 다 된다고 하는데 저만 안되는거면 제 컴퓨터가 문제인건가요?

Respuestas (1)

Tushar
Tushar el 20 de Mzo. de 2023
Hi,
There maybe another script file named ODE45, which might be preventing MATLAB from running the actual ode45 function included with matlab. You can search for the script file and then try removing it.
You can have a look at this answer: Here
Hope it helps!!

Categorías

Más información sobre 프로그래밍 en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!