程序运行错误提示:Error using ==> mpower Matrix must be square.Error in ==> Tf at 3 y=sqrt{(1+
问题描述:
程序运行错误提示:Error using ==> mpower Matrix must be square.Error in ==> Tf at 3 y=sqrt{(1+
程序
dx=1;
x=0:dx:100;
y=sqrt{(1+0.04.*x^2)/[(1-x^2)^2+0.04.*x^2]};
plot(x,y)
答
y=sqrt((1+0.04*x.^2)./[(1-x.^2).^2+0.04*x.^2]);
首先sqrt之后是圆括号,不能用{};
其次,你的.都加错地方了.
按我改正的式子可以出结果.