I have T=81×4 struct, each member has two fields (x and y cordinate). I want to plot each row which will be 4 nodes to make a rectangular by connecting the nodes. Totally it should be 81 rectangular. I am wondering how can I plot each row of struct with 2 fields. I would appreciate if anyone can help me.
for i=1:81plot(T(i,:).x,T(i,:).y,'.')xlim([-50 50]);ylim([-50 50]);k = boundary(x,y);hold on;plot(x(k),y(k));end
Best Answer