随笔分类 -  matlab

摘要:测试 clc; clear; M2=[]; TIME2={}; %fid = fopen('2020-12-27-16-19-52.txt'); %fid = fopen('2020-12-17-09-21-11-1.txt'); %fid = fopen('2020-12-17-09-21-11- 阅读全文
posted @ 2021-05-13 22:14 西北逍遥 阅读(36) 评论(0) 推荐(0)
摘要:巴特沃斯滤波 function [order,wn] = buttord(wp,ws,rp,rs,opt) %BUTTORD Butterworth filter order selection. % [N, Wn] = BUTTORD(Wp, Ws, Rp, Rs) returns the ord 阅读全文
posted @ 2021-04-17 20:59 西北逍遥 阅读(212) 评论(0) 推荐(0)
摘要:matlab遍历目录下的文件并按文件名排序 clc; clear; rootDir='L:\GZY_20210305\2020-12-26-07-56-14_1\'; [ listFiles ] = listFiles202102( rootDir ); listFiles202102.m func 阅读全文
posted @ 2021-04-08 21:56 西北逍遥 阅读(1830) 评论(0) 推荐(0)
摘要:matlab 心电数据处理日志 matlab EGC数据处理 阅读全文
posted @ 2021-04-07 18:02 西北逍遥 阅读(89) 评论(0) 推荐(0)
摘要:read txt clc; clear; %ekg_raw=load('2.txt'); ekg_raw=load('20210110133815000_20210110134234000.txt'); %x=ekg_raw(:,1); %y1=ekg_raw(:,2); [row,col]=siz 阅读全文
posted @ 2021-04-02 09:45 西北逍遥 阅读(204) 评论(0) 推荐(0)
摘要:matlab读取数据并操作 M2=[] fid = fopen('2020-12-27-16-19-52.txt'); tline = fgetl(fid); k=1; while ischar(tline) %disp(tline) S = regexp(tline, '\s+', 'split' 阅读全文
posted @ 2021-04-01 19:18 西北逍遥 阅读(912) 评论(0) 推荐(0)
摘要:matlab 心电数据处理日志 matlab EGC数据处理 RR:RR间期的平均值 SDNN:RR间期的标准差 SDANN:24h内每5min的RR间期平均值的标准差SDNNIDX:24h内每个5min内的RR间期标准差的平均值 rMSSD: 相邻RR间期差值的均方根 >> >> RR RR = 阅读全文
posted @ 2021-03-30 08:22 西北逍遥 阅读(423) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-03-12 08:05 西北逍遥 阅读(54) 评论(0) 推荐(0)
摘要:matlab日期 年月日 时分秒 毫秒 yyyy-mm-dd HH:MM:SS.FFF >> >> str3 str3 = 2020-12-26 08:31:16.461 >> >> >> t_3 = datestr(str3,'yyyy-mm-dd HH:MM:SS.FFF') t_3 = 202 阅读全文
posted @ 2021-03-04 21:04 西北逍遥 阅读(1055) 评论(0) 推荐(0)
摘要:sudo sudo /usr/local/MATLAB/R2016b/bin/matlab 1、tar -xvzf data_orig/sbd.tar.gz -C data_orig && rm data_orig/sbd.tar.gz 2、run code/demoPreproc.m 3、run 阅读全文
posted @ 2021-02-08 10:28 西北逍遥 阅读(111) 评论(0) 推荐(0)
摘要:ubuntu16安装matlab2016 star@xmatrix:~$ star@xmatrix:~$ star@xmatrix:~$ ls 0603_Depth_metadata.csv Matlab_2016b 0603_Depth.png Music 0603_Depth.raw nvidi 阅读全文
posted @ 2021-02-03 16:16 西北逍遥 阅读(388) 评论(0) 推荐(0)
摘要:模仿matlab界面 阅读全文
posted @ 2020-12-31 15:52 西北逍遥 阅读(132) 评论(0) 推荐(0)
摘要:矩阵的乘方 >> A=[1 2 3;4 5 6;7 8 9] A = 1 2 3 4 5 6 7 8 9 >> >> A^2 ans = 30 36 42 66 81 96 102 126 150 >> >> >> A^3 ans = 468 576 684 1062 1305 1548 1656 阅读全文
posted @ 2020-12-23 16:21 西北逍遥 阅读(1089) 评论(0) 推荐(0)
摘要:z=a+bi >> z=2+3i z = 2.0000 + 3.0000i >> >> z.^2 ans = -5.0000 +12.0000i >> >> >> z.^3 ans = -46.0000 + 9.0000i >> >> 阅读全文
posted @ 2020-12-09 08:26 西北逍遥 阅读(920) 评论(0) 推荐(0)
摘要:matlab X的-3次方函数绘制 >> x1=-20:0.2:20; >> y1=x1.^(-3)+1; >> plot(x1,y1) 阅读全文
posted @ 2020-11-30 08:18 西北逍遥 阅读(700) 评论(0) 推荐(0)
摘要:matlab X的负次方函数绘制 >> x1=-20:0.2:20; >> y1=x1.^(-2)+1; >> plot(x1,y1) 阅读全文
posted @ 2020-11-30 08:16 西北逍遥 阅读(1426) 评论(0) 推荐(0)
摘要:matlab求矩阵特征值和特征向量 >> A1 A1 = 1 2 2 2 1 -2 2 -2 1 >> >> >> [X,B]=eig(A1) X = 0.5774 -0.5661 0.5883 -0.5774 -0.7926 -0.1961 -0.5774 0.2265 0.7845 B = -3 阅读全文
posted @ 2020-11-01 18:16 西北逍遥 阅读(2463) 评论(0) 推荐(0)
摘要:matlab矩阵化为行最简形 在matlab中没有找到化为阶梯型矩阵的函数,只有化为最简形的函数 >> G1=[1 2 3 5;2 0 1 2;4 9 2 1] G1 = 1 2 3 5 2 0 1 2 4 9 2 1 >> >> >> >> G1_1=rref(G1) G1_1 = 1.0000 阅读全文
posted @ 2020-10-29 17:29 西北逍遥 阅读(1920) 评论(0) 推荐(0)
摘要:matlab矩阵列互换 >> F1=[1 0 4 6;2 7 2 1;5 3 9 2] F1 = 1 0 4 6 2 7 2 1 5 3 9 2 >> >> >> >> >> F1(:,[1,3])=F1(:,[3,1]) F1 = 4 0 1 6 2 7 2 1 9 3 5 2 >> 阅读全文
posted @ 2020-10-28 16:12 西北逍遥 阅读(2388) 评论(0) 推荐(0)
摘要:matlab矩阵行互换 >> F1=[1 0 4 6;2 7 2 1;5 3 9 2] F1 = 1 0 4 6 2 7 2 1 5 3 9 2 >> >> >> >> >> F1([1;3],:)=F1([3;1],:) F1 = 5 3 9 2 2 7 2 1 1 0 4 6 >> 阅读全文
posted @ 2020-10-28 16:10 西北逍遥 阅读(2016) 评论(0) 推荐(0)