![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/20111162_1603680170365_DEF.jpg)
Zhenwei Yu
Followers: 0 Following: 0
Feeds
提问
How to write code for projected gradient descent?
clc; clear; a=0.01; x=[0;0;0] b=1 for i=1:1000 if b<10^-6 break end r=x-a*f(x) b=proj(r-x) ...
3 years 前 | 1 个回答 | 0
1
个回答提问
How to write a symbolic function array?
function f=g5(x) syms q b x q=[6 7 1;7 11 2;1 2 22] b=[-1;2;3] x=transpose(sym('x',[1 3])) f=1/2*transpose(x)*q*x+transpose...
3 years 前 | 0 个回答 | 0