宅宅工程師
An engineer in the daytime. A reader at night. Instagram: @hc_write
顯示具有
MATLAB
標籤的文章。
顯示所有文章
顯示具有
MATLAB
標籤的文章。
顯示所有文章
2016年11月5日 星期六
[MATLAB] 微分後代值求解 (gradient, syms, eval)
Example:
function output = sigmoidalGradient(input)
syms a; % variable
y = gradient(1/(1+exp(-a))); % get gradient of the function
a = input; % let variable a be some number
output = eval(y); % evaluate the funciton
end
較舊的文章
首頁
訂閱:
文章 (Atom)