Prev: mc-cdma
Next: Conversion to double from sym
From: Greg on 8 Feb 2005 12:18 I downloaded f2matlab and got the same problem Alex has. So I tried with all of the function given in example, like dgauleg.f90 ... and the result was the always same: > ??? Error using ==> strfind > Inputs must be character arrays. > i=intersect(find(~cellfun('isempty',strfind(funstr,':'))),fs_good) Is it because matlab has to run on unix, or it has to be matlab 7.0, (I use 6.5)? Thanks, Greg
From: Ben Barrowes on 8 Feb 2005 13:30 The latest release of f2matlab has to be run on R14 due to the added functionality of strfind. Try replacing: for i=intersect(find(~cellfun('isempty',strfind(funstr,':'))),fs_good) with: if ~isempty(strfind(version,'R14')) tempflag=intersect(find(~cellfun('isempty',strfind(funstr,':'))),fs_good); else tempflag=[]; for ii=1:length(funstr) if ~isempty(strfind(funstr{ii},':')) tempflag=[tempflag,ii]; end end tempflag=intersect(tempflag,fs_good); end for i=tempflag Let me know if this works. Ben Greg wrote: > I downloaded f2matlab and got the same problem Alex has. So I tried > with all of the function given in example, like dgauleg.f90 ... and > the result was the always same: > > >>??? Error using ==> strfind >>Inputs must be character arrays. >>i=intersect(find(~cellfun('isempty',strfind(funstr,':'))),fs_good) > > > Is it because matlab has to run on unix, or it has to be matlab 7.0, > (I use 6.5)? > > Thanks, Greg >
|
Pages: 1 Prev: mc-cdma Next: Conversion to double from sym |