From: kk KKsingh on
I just installed a NFFT library on the server and want to test it......there is folder with all the matlab codes in it ! when i try to run simple_test.m file i got the following error message

attempt to execute script nfftmex as a function

This is code file i am trying to run

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
disp('A simple one dimensional example');

% maximum degree (bandwidth)
N = 10;

% number of nodes
M = 3;

% nodes
x=rand(1,M)-0.5;

% Create plan.
plan = nfft_init_1d(N,M);

% Set nodes.
nfft_set_x(plan,x);


POSTED THE few lines of the code I am getting error as

Error in line 23 nfft_init_1D

nfft_init_1D is another file look like tthis


%NFFT_INIT_1D Initialise plans
% Copyright (c) 2002, 2009 Jens Keiner, Stefan Kunis, Daniel Potts

% Copyright (c) 2002, 2009 Jens Keiner, Stefan Kunis, Daniel Potts
%
% This program is free software; you can redistribute it and/or modify it under
% the terms of the GNU General Public License as published by the Free Software
% Foundation; either version 2 of the License, or (at your option) any later
% version.

%
% $Id: nfft_init_1d.m 3124 2009-03-18 13:44:27Z kunis $
function p = nfft_init_1d(N,M)

p = nfftmex('init_1d',N,M)


i HAVE ALL THE CODES needed to run this script in the same folder still i am getting error