Rank: 15087 based on 0 downloads (last 30 days) and 0 file submitted
photo

Nick Hale

E-mail
Company/University
University of Oxford

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Nick Hale View all
Updated File Comments Rating
21 Nov 2014 Chebfun V4 Numerical computation with functions instead of numbers. Author: Chebfun Team

Hi Mehedi

I suggest you download the new version of Chebfun from here:

http://www.mathworks.com/matlabcentral/fileexchange/47023-chebfun

Regards

Nick

23 Apr 2013 Chebfun V4 Numerical computation with functions instead of numbers. Author: Chebfun Team

Hi Jeff

Sorry for the delay in replying. In your first problem, you haven't quite the boundary condition syntax correct. The following should work:

L = chebop(@(x,u) diff(u,4), [0,1]);
B = chebop(@(x,u) sin(x) + 0*u, [0,1]);
L.lbc = @(u) [diff(u,2), diff(u,3)];
L.rbc = @(u) [diff(u,2), diff(u,3)];

The y''''(x)=lambda*f(x)*y(x) problem should be possible also. Try something like the following, where sin is replaced by the m-file you wish to use to construct f:

f = chebfun(@sin, [0, 1]);
[V, D] = eigs(L, diag(f), 4);

Regards

Nick

P.S. Emailing discuss@chebfun.org or help@chebfun.org should result in speedier replies! :)

Contact us