画图出现问题,报错:数据必须为可转换为双精度值的数值、日期时间、持续时间或数组。

想画出频率和电压的关系

syms  n 
R=100;   b=0.01;   L0=0.05;   h=0.00008;   c13=8.46702e10;   c33=1.17436e11;
e31=-2.74e10;   e33=5.93e10;   mu33=1433.6;
fre = linspace(10,140,20);
omega=2*pi*fre;
T=2*pi./omega;
an=(1/n*pi)*sin(2*pi*n);
bn=(1/n*pi)*cos(2*pi*n);
f=(an^2+bn^2)./((R*omega*mu33*L0*b/h).^2.+1/n^2);
s=symsum(f,n,1,inf);
w=sqrt(s);
V=-(an^2+bn^2)./sqrt(2)*4*pi*b*h*(e31-(c13*e33/c33))./2*R.*omega.*sqrt(0.01).*w;
plot(fre,V)

报错信息是:错误使用 plot
数据必须为可转换为双精度值的数值、日期时间、持续时间或数组。