Matlab function 'square' and cvx function 'square' is different

(hua meng) #1

i use cvx function square,however,it seems it doesnot follows that square=X.*X,i test in matlab window command square(2),it outputs 1,obviously it should be 4,please help me ,thank you

(Mark L. Stone) #2

Perhaps this will help Warning about `square.m` during CVX installation

which -all square
to see what all the square functions are in your MATLAB path.

(hua meng) #3

thanks very much ,it is very helpful !