clear all;
%Input the signal of file
pause on;
FileName=input('Please input the signal file:','s');
Fs=input('Please input the frequency(Hz):');
%=====================================
load(FileName);
temp=strtok(FileName,'.');
s=eval(temp);
s=s-mean(s);
xlen=max(size(s));
t=(1:xlen)/Fs;
f=(1:xlen/2)*Fs/xlen;
上面这段程序中eval是什么意思?为什么我在运行这段程序的时候s=eval(temp);这句出现错误,错误如下:
??? Error: Missing variable or function.
Error in ==> B27 at 8
s=eval(temp);
初学者,有哪位大虾,给帮帮忙!很急~
原帖由 smzxzl 于 2007-4-23 16:54 发表
clear all;
%Input the signal of file
pause on;
FileName=input('Please input the signal file:','s');
Fs=input('Please input the frequency(Hz):');
%=====================================
load( ...