? Error: Missing MATLAB operator

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 12K views
pvivas1
Messages
1
Reaction score
0
? Error: Missing MATLAB operator

Hi I am trying to run a program (My version of MATLAB is 7.01(R14))
called FindPeaks.m

function [peaks]=FindPeaks(fname)

eval(['load fname.dat -ascii'])
eval(['timedata=',fname,'(:,1);']); % log10 scale !
eval(['amplitude=',fname,'(:,2);']);

*****************
then I enter my file which doesn't have any extension:

my file name is: sam_2mem_e1.FLT.a.171
then

FindPeaks('sam_2mem_e1.FLT.a.171')
? Error: Missing MATLAB operator.

Error in ==> FindPeaks at 5
eval(['timedata=',fname,'(:,1);']); % log10 scale !


Thank for any suggestions
Paula
 
Last edited:
Physics news on Phys.org


try writing its type as extension...