Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
Function Description
This function creates a polygon on top of any figure window.
AUTHOR: Sugato Ray | Created on: 10-FEB-2017 | ray.sugato[at]gmail.com
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLEASE ACKNOWLEDGE THE AUTHOR IF YOU USE THIS CODE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
INPUT:
numSides = number of sides to the polygon
vertexMarker = a string to mark the vertices. For example: 'o'
OUTPUT:
p = a structure array with the information on
vertex >> p.vertex
figure >> p.figure
axis >> p.axis
EXAMPLE:
p = createPolygonInFigure(numSides,vertexMarker);
p = createPolygonInFigure(numSides,'o');
p = createPolygonInFigure(numSides);
p = createPolygonInFigure(4); % Quadrilateral w/o marking the vertices
p = createPolygonInFigure(4,'o'); % With vertices marked by 'o'
Cita come
Sugato (2026). createPolygonInFigure(numSides,vertexMarker) (https://it.mathworks.com/matlabcentral/fileexchange/64104-createpolygoninfigure-numsides-vertexmarker), MATLAB Central File Exchange. Recuperato .
Informazioni generali
- Versione 1.0.0.0 (1,86 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
| Versione | Pubblicato | Note della release | Action |
|---|---|---|---|
| 1.0.0.0 |
