matlab
kill bert
在深度学习的小菜鸡
展开
-
曲线拟合
s=polyfit(x,y,2); t=0:1:100; w=s(1)*t.^2+s(2)*t+s(3); S=sum((x-mean(x)).^2); A=sum((w-mean(x)).^2); r2=1-A/S原创 2019-11-23 11:30:09 · 242 阅读 · 0 评论 -
变换
syms t; g=t*exp(-3*t); laplace(g) f=8*sin(5*t)-exp(-t)*cos(2*t); laplace(f) syms s; g=1/s-(2*s^2+3)/(s^2+9); ilaplace(g) f=s/(s^2-49)-3/(s^2-9); ilaplace(f) g=(2/s)/(1+s); ilaplace(g) fourier(t^2...原创 2019-11-23 11:14:38 · 154 阅读 · 0 评论 -
积分
syms x a; f=x.*exp(-a*x);int(f) syms b x c; f=1/sqrt(x^2+b*x+c); int(f) f=x*tan(x); int(f) syms y; f=sin(y*x); int(f^2,y) f=exp(-3*x)*cos(x); int(f,0,inf) f=sqrt(x); int(pi*f^2,0,1) f=x^2; int(p...原创 2019-11-23 08:55:51 · 125 阅读 · 0 评论 -
微分方程
limit(f,x,3,'left') f=sin(4*x)/x; limit(f) g=(x^2-3*x)/x; ezplot(1/g) hold on plot(double(solve(g))*[1,1],[-2,2],'--'); hold off for i=0:10:30 s=dsolve('Dx=-2*x+8') f=subs(s,'C1',i); ezplot(f,[-1,1])...原创 2019-11-22 20:02:59 · 233 阅读 · 0 评论 -
matlab绘图
x=[0:0.01:10]; y=cos(x); plot(x,y),xlabel('x'),ylabel('cos(x)'); fplot('exp(-2*t)*sin(t)',[0,4]),xlabel('t'),ylabel('f(t)'),title('阻尼弹力') x=[-6:0.01:6]; y=tanh(x); plot(x,y),grid on ```cpp t=[0:0.0...原创 2019-11-22 19:17:24 · 194 阅读 · 0 评论 -
代数方程求解和其他符号工具
d=x^2+sqrt(5)*x-pi; solve(d); ezplot(d,[2,4,0,1]) simplify(tan(x)^2-sec(x)^2) s=taylor(tan(x)); T10 = taylor(y, x, 'Order', 10)原创 2019-11-19 22:02:26 · 237 阅读 · 0 评论 -
统计和matlab编程基础
a=[130,138,145,150,152,155,160,164,165,167,170,172,175]; b=[2,1,3,6,1,3,1,1,3,4,3,2,1]; n=sum(b); raw=[]; for i =1:length(b) new=a(i)*ones(1,b(i)); raw=[raw,new]; end ave=mean(raw); md=median(...原创 2019-11-19 21:36:30 · 167 阅读 · 0 评论