Change the settings of plotting regions

22 views
Skip to first unread message

XB G

unread,
Nov 5, 2018, 12:09:44 PM11/5/18
to YALMIP
Hi Johan,
Could you please provide some instructions on the plot() function? 
I'm trying to plot a polytope, how can I plot the boundaries of regions with different line styles (e.g. dotted lines, lines in different colors, with different width)?

Thanks,
XB

Johan Löfberg

unread,
Nov 5, 2018, 12:15:12 PM11/5/18
to YALMIP
there is no support for that. you would have to edit the code

XB G

unread,
Nov 6, 2018, 2:52:33 PM11/6/18
to YALMIP
It is done using MPT3 to find all the vertices, and use the polyshape object defined in Matlab.

Johan Löfberg

unread,
Nov 6, 2018, 2:57:30 PM11/6/18
to YALMIP
was that a question, clarification of the question, or answer to the question...

XB G

unread,
Nov 6, 2018, 3:00:50 PM11/6/18
to YALMIP
Sorry that was an answer.

I put it here since it might be helpful for someone else trying to do similar things.
Reply all
Reply to author
Forward
0 new messages