function [dydx k] = myodesimple(x, y, flag, c)k = x.^2 + y.^2;dydx = x + k.*y + c;
function [dydx k] = myodecomplex(x, y, flag, c) k(1) = x.^2 + y(1).^2; dydx(1) = x + k.*y(1) + c; dydx(2) = x + (4.*c).*y(2); k=k(1)’; dydx=dydx';
"??? In an assignment A(I) = B, the number of elements in B and I must be the same.Error in ==> myodecomplex at 2 k(1) = x.^2 + y(1).^2;
Best Answer