
Matlab
算法恩仇录
每个人的人工智能,每个人的璀璨人生~
展开
-
matlab 使用GPU
%% Use GPU if equipped. GPU significantly speeds up optimization.if gpuDeviceCount>0 fprintf('GPU detected. Trying to use it ...\n'); try VV=gpuArray(VV); X1=gpuArray(X1); X2=gpuAr...原创 2018-08-03 17:25:01 · 2803 阅读 · 0 评论 -
MATLAB spdiags
spdiags复制 来源 :https://ww2.mathworks.cn/help/matlab/ref/spdiags.html提取并创建稀疏条带和对角矩阵语法B = spdiags(A)[B,d] = spdiags(A)B = spdiags(A,d)A = spdiags(B,d,A)A = spdiags(B,d,m,n)说明spdiags函数将d...转载 2018-07-25 06:54:58 · 5250 阅读 · 0 评论 -
matlab字符串的操作及正则表达式regexp
转载 https://blog.youkuaiyun.com/awakeljw/article/details/76180599?locationNum=5&fps=1matlab字符串的操作及正则表达式regexp1.字符串的操作在参考文献3中已经基本列举完善,用法及其简单,不过多赘述。主要的字符串操作函数有如下:length(str)%计算字符的长度strcat(str1,s...转载 2018-07-25 06:48:12 · 5458 阅读 · 0 评论