
matlab
drbinzhao
这个作者很懒,什么都没留下…
展开
-
format long g 关闭科学记数法 matlab
format long g 关闭科学记数法 matlab原创 2020-01-31 02:05:06 · 3423 阅读 · 0 评论 -
matlab 批量文件重新命名
files = dir(‘*.jpg’); len=length(files); for i=1:len oldname=files(i).name; newname=strcat(‘safetyvest’,num2str(i),’.jpg’); command = [‘rename’ 32 oldname 32 newname]; status = d...原创 2018-07-01 07:41:35 · 1814 阅读 · 0 评论 -
寻找曲线极值点
[DIFF,DEA,MACDbar]=ZB_MACD(StockData(:,5),12,26,9) plot(DIFF) [a,b]=findpeaks(DIFF) hold on plot(b,a,’ro’) [c,d]=findpeaks(-DIFF); hold on plot(d,-c,’ro’)原创 2016-12-31 04:51:07 · 5024 阅读 · 0 评论 -
matlab cell保存mat 以及提取
B cellsave('3000wrods.mat','B'); B=load('3000wrods.mat')c=struct2cell(B);d=c{1}原创 2016-10-04 01:33:52 · 14559 阅读 · 1 评论 -
matlab cell排序
load data: import data;B=aB=[B a1]B=sortrows(B,2)B{1,2}='aaa'原创 2016-10-04 01:24:28 · 5615 阅读 · 0 评论 -
matlab mysql
javaaddpath 'C:\Program Files\MATLAB\R2016a\mysql-connector-java-5.1.36-bin.jar';原创 2016-09-30 10:53:50 · 1042 阅读 · 0 评论 -
解方程
syms x a b csolve('a*x^2+b*x+c=0',x) syms p1 p2 p3 t1 t2 t3 t p nf1=(p3+p2)*(t3-t2)/2+(p2+p1)*(t2-t1)/2-(p3+p1)*(t3-t1)/2f2=(p3+p)*(t3-t)/2+(p+p1)*(t-t1)/2-(p3+p1)*(t3-t1)/2 f3原创 2016-09-28 06:45:19 · 1141 阅读 · 0 评论 -
方程求值
>> syms x;>> y=3*x*(x+1)>> x=2x = 2>> eval(y)ans = 18原创 2016-09-26 05:13:47 · 1007 阅读 · 0 评论 -
拟合点
>> s=0:2:8s = 0 2 4 6 8>> c=[1 18 59 124 213]c = 1 18 59 124 213>> cftool原创 2016-09-25 16:21:41 · 1564 阅读 · 0 评论 -
增加6再加根乘6
f1=3*x*(x+1)+1 f2=3*(x+1)*(x+2)+1 expand(f2-f1)ans =6*x + 6 solve(f1==19)ans =-3 2 19+6*2+6 ans =37A=solve(f1==22) b=22+6+6*A(2) floor(b)原创 2016-09-25 15:58:53 · 1012 阅读 · 0 评论 -
分解 多项式扩展 同幂合并 求方程
分解 多项式扩展 同幂合并 求方程 syms x y; factor(x^3-y^3) expand((x-2)*(x-4)) expand(cos(x+y)) expand((exp(x)+x)*(x+2)) ans =2*x + 2*exp(x) + x*exp(x) + x^2 collect((exp(x)+x)*(x+2)) ans =x^2原创 2016-09-25 15:43:59 · 1254 阅读 · 0 评论