malnuaim / wafo

Automatically exported from code.google.com/p/wafo
0 stars 0 forks source link

Dat2dspec does not work for option 'mem' #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When method ‘mem’ selected, the following error was displayed.

method =

mem

??? Error using ==> multidim\private\mem

Too many input arguments.

Error in ==> dat2dspec at 357

    DS = mem(Sxyn,Gwt,thetai,fi,k,opt);

Error in ==> wafotestvv at 23

[S,D,Sw] = dat2dspec(D,[pos type' bfs'],h,256,101,method, opt);

The mem method has obviously one errror, but can be easily fixed by adding 
varargin as the last function argument in mem.m:
(mem(Sxyn,Gwt,thetai,fi,k,varargin))

The specopt option for mem.m function is obviously not completed. 

Original issue reported on code.google.com by Per.Andreas.Brodtkorb@gmail.com on 9 May 2009 at 3:58