2016年11月10日 星期四

[Unity] 筆記

> 欲不顯示material的黑色背景部分
Shader - Particles/Additive

material背景為黑色的話,不顯示,顯示有顏色處
適用:bullet



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