To attempt and solve a problem. This is my code:
이전 댓글 표시
%pdb.m
function dydx = pdb(x,y)
dydx=(-2*x^3)+(12*x^2)-(20*x)+(8.5);
%runpdb.m
clear
clc
rentang_x = [0 4];
y0 = 1;
[x,y] = ode23('pdb',rentang_x,y0);
plot(x,y)
xlabel('x')
ylabel('y')
the error is
Error using pdb (line 3)
Not enough input arguments.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!