I have a code that works fine in Manopt4.0.
>> ex1
f: +1.089000e+05 |grad|: 3.759427e+02
No appropriate method, property, or field 'removefirstifdifferent' for class 'StoreDB'.
Error in trustregions (line 700)
storedb.removefirstifdifferent(key, key_prop);
Error in S2sharp>Zstep (line 199)
[Z, xcost, info, options] = trustregions(problem,Z,options); % trustregions(problem,Z,options);
Error in S2sharp (line 125)
[Z,Jcost(jCD),options]=Zstep(Y,FBM,F,lambda,nl,nc,Z,Mask,q,FDH,FDV,FDHC,FDVC,W,Whalf,tolgradnorm);
Error in S2sharp_time_analysis (line 7)
[Xhat_im, SAMm_b, SAMm_2m_b, SRE_b,
Jcost]=S2sharp(Yim,'Xm_im',Xm_im,'lambda',lambda,'CDiter',num_iter,'tolgradnorm',1e-1);
Any help would be appreciated.