Ask, Learn and Accelerate in your PhD Research

image Post Your Answer


image

Graphic patch in MATLAB

5 years ago in Matlab By Shiran Khan


I’m using patch to create patch graphics in MATLAB. How can I apply graphics patches in MATLAB? And what are the commonly used syntaxes?

All Answers (4 Answers In All) Post Your Answer

By Anubhav Kumar Answered 5 years ago

Open a Local Machine window Type xhost + ashland Add the following code sequence before the plot command. Figure; Set(gcf,’renderer,’zbuffer’); [s,w] = unix(‘echo $DISPLAY’); Set(gcf,’XDisplay’,w);


By Shiran Khan Answered 5 years ago

Thank you so much! Sir, I have some queries regarding the codes. Can you please resolve them?


By Anubhav Kumar Answered 5 years ago

Sure, just drop a mail. I will help you with the codes.


By Mayur Desai Answered 5 years ago

Hi. The popular patch syntaxes are 1. patch(X,Y,C) adds the filled two-dimensional patch to the current axes. The elements of X and Y specify the vertices of a polygon. 2. patch(X,Y,Z,C) creates a patch in three-dimensional coordinates. patch(FV) creates a patch using structure FV, which contains the fields vertices, faces, and optionally facevertexcdata. 3. patch(…’PropertyName’,PropertyValue…) follows the X, Y, (Z), and C arguments with property name/property value pairs to specify additional patch properties. 4. patch(‘PropertyName’,PropertyValue,…) specifies all properties using property name/property value pairs. 5. handle = patch(…) returns the handle of the patch object it creates.


Your Answer


View Related Questions


asked at 05 Dec, 2019 08:10 in Matlab By Rajiv Bhatia


asked at 25 Apr, 2019 07:18 in Matlab By Prithvi Patel




asked at 02 Feb, 2019 08:12 in Matlab By Aama




asked at 04 Aug, 2018 09:34 in Matlab By Nancy Trivedi