Error with Cheb function
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
Where the ODE is

with boundary condition

y(1)=sin(1)
D = [1/pi*3 ,1];
N = chebop(D); 
N.lbc = [1];
N.rbc = 1 - sin(1);
N.op = @(t,x,y) diff(y,2) + (2/x)*diff(y,1) + (1/(x^4))*y;
[x, y] = N\0;
plot([x, y]);
댓글 수: 6
답변 (1개)
  Bhavana Ravirala
    
 2023년 2월 15일
        Hi,
The error you received indicates that the operator fails to evaluate the initial guess. To resolve this error, we can assign the initial guess with the boundary conditions.
N.init = [0; sin(1)];
Hope this helps!!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



