(adsbygoogle = window.adsbygoogle || []).push({}); ??? 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

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# ? Error: Missing MATLAB operator

**Physics Forums | Science Articles, Homework Help, Discussion**