![]() |
符号函数怎么赋值 怎么画出函数图像
syms r,E;
E=(4*r^2)/(3*exp((4*r^2)/5)); >> r=linspace(0,105*10^-9,30); >> plot(r,Ez) ??? Error using ==> plot Conversion to double from sym is not possible. >> subs(Ez,r); >> plot(r,Ez) ??? Error using ==> plot Conversion to double from sym is not possible. 怎么出来图呢?用ezplot也不行,就成了一条直线。 我前面的r因为要求微分 积分,所以没改成数值。 |
回复: 符号函数怎么赋值 怎么画出函数图像
E=(4*r.^2)./(3*exp((4*r.^2)/5));
>> r=linspace(0,105*10^-9,30); >> plot(E,r) >> grid on >> xlabel('E=(4*r^2)/(3*exp((4*r^2)/5))') >> ylabel('r') /****因为r是个矩阵,所以E中的计算必须用点乘和点除的算法才行***/ |
所有时间均为北京时间。现在的时间是 03:15。 |
Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.