Define variable

variable be a complex matrix? If so, how do I define this variable.
Thank you

Use the complex keyword, as explained at .

variable x (m,n) complex
Just like this. I used complex keyword,but it showed Invalid structure specification: (m,n)

That error is due to the space between x and (m,n)

variable x(m,n) complex
will work, provided m and n already have positive integer values.

Mark,I give the integer values to m and n, just like this
m=512; n=20
variable x (m,n) complex;

but the error still exists , ''Invalid structure specification: (m,n)"
so I don’t know what caused it appearance .

Thank you

Your code still has a space between

You need to remove that space.

Thank you , Mark . My problem was solved perfectly.