I designed a patch antenna in HFSS. I want to divide it to m*n cells by using genetic algorithm .If a cell is conducting, then the corresponding gene is assigned 1, and if
a cell is non-conducting, it is assigned 0. I don't know how to write matlab code for deviding and then draw the best result of this optimization in HFSS. (like the article below)