画decision boundary(直线) %% ============= Part 3: Optimizing using fminunc =============% In this exercise, you will use a built-in function (fminunc) to find the% optimal parameters theta. % Set options for fminuncoptions = optimset('GradObj', 'on', '…
sigmoid.m文件 function g = sigmoid(z)%SIGMOID Compute sigmoid functoon% J = SIGMOID(z) computes the sigmoid of z. g = zeros(size(z)); 初始化g ,z可以是一个数,一个向量或者一个矩阵 % ====================== YOUR CODE HERE ======================% Instructions: Compute the si…
计算14通道得脑电数据吗,将得出的样本熵插入Excel表格 a = zeros(1,14); b = a'; for i =1:14 b(i) = SampEn(d1_1(i,1:3000),2,0.2*std(d1_1(i,1:3000))); end xlswrite('C:\Users\25626\Desktop\滤波后数据\14\样本熵\样本熵.xlsx',b,'Sheet1','J');%数据写入A列 调用的SampEn函数 function SampEnVal = SampEn(da…