Community Profile

photo

Muhammad Giovani


Last seen: mer än 2 år ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


Error this answer is NaN, in my runge-kutta code
hello guys I'm compiling a code in research, code like a close clear clc C1 = 1; C2 = 1; A1 = 1; A2 ...

mer än 2 år ago | 1 answer | 0

1

answer

Question


Error: Function definitions are not permitted in this context.
help for error this my code function y = code1(A,B,C,x0) | Error: Function definitions are not permitted in this context. %...

ungefär 3 år ago | 1 answer | 0

1

answer

Question


How to fix it ? Warning: Do not specify equations and variables as character strings. Instead, create symbolic variables with syms. > In solve>getEqns (line 455) In solve (line 227)
my code S=dsolve('Dx1=x2,Dx2=-lam2,Dlam1=0,Dlam2=-lam1,x1(0)=1,x2(0)=2,x1(tf)=3,lam2(tf)=0') t='tf'; eq1=subs(S.x1)-'x1tf'; ...

ungefär 3 år ago | 1 answer | 0

1

answer