My question is if I want to construct the W1, W2 and W3 matrixes by using smaller Wij matrixes and each Wij is 3 by 3 matrix and rank-1 matrix.
How can I do that and what constraints should I put on my new Wij matrixes?

Your question is confusing. I suppose it is related somehow to your previous thread How to calculate unknown vectors from semidefinite square matrix variable But I really don;t know what you are trying to do… But if what you are trying to do is non-convex, CVX can not handle it. (I don’t know, because I don’t know what you are trying to do. You can form a rank one matrix in CVX as an outer product of two vectors, providing that at most one of of the vectors in the product is a CVX variable or expression.)

As for your current program, I presume the oo entries in W are really each zeros(3); So you should write them that way.

Are your constraints W1 >= 0; W2 >= 0; W3 >= 0; meant to be element-wise? If so, you will need something acceptable to CVX, such as real(W1) >= 0 , etc. or whatever you want. If they are meant to indicated hermitian semidefinite, that is already accomplished in the variable declarations. And in any event, you have not specified sdp mode, so they will not be interpreted as such…

Yes, you are right. It is related with that my previous post and oo entries are zeros(3). Also I forgot to mention that my cvx in sdp mode. Actually, I tried the following but I could not get rank 1 for all matrixes.

I got W1, W2 and W3 all have rank 1 after the solution for the original case, but when I tried the new structure setup I failed to get all matrixes to be rank 1.

In your previous thread, i showed you how to make matrices rank one by construction, which was possible because one of the variables being multiplied was not a CVX variable or expression. I have no idea what you are trying to do in this thread. I’m not a mindreader,so you have to tell us very explicitly and clearly what that is.

If you have a well-specified convex optimization model which you need help getting into CVX, perhaps we can help you.