draw into a picture matrix
Draws directly into a multidimensional picture matrix (e.g. rgb).
draw_bndry:
fig = draw_bndry(fig, bndryy, bndryx, clr)
draws specified points (boundaries) into picture matrix (figure)
draw_circ:
fig = draw_circ(fig, circ, clr, cen)
draws boundaries of circle into picture matrix (figure)
fig = draw_circ(fig, circ, clr, cen)
cen == 1 cross on centroid
draw_clline:
varargout = draw_clline(fig, pts, clr, cl, varargin)
draws boundaries of polygonal lines into picture matrix (figure)
cl == 0 not closed, cl == 1 closed but no centroid, cl == 2 closed and centroid
varargin = 'bndry' then varargout = bndry
kochsnow:
varargout = kochsnow(iters,varargin)
makes a picture of the Koch snowflake(utilizing draw_bndry and draw_circ)
made of code from http://www.mathworks.de/matlabcentral/newsreader/view_thread/138798
credits for the snowflake calculation go to Maarten van Reeuwijk
varargin examples:
varargin = 'm', m
varargin = 'save', 'kochsnow%.bmp' % is replaced by iters
varargin = 'show', false
varargout:
can be called with one or no argument as an output
includes 'imfill' from the Image Processing Toolbox. If you don't have the toolbox just comment the line that includes the command 'imfill' and you will get the boundary of the snowflake
Cita come
Sebastian W (2025). draw into a picture matrix (https://it.mathworks.com/matlabcentral/fileexchange/35460-draw-into-a-picture-matrix), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Gaming > Holidays / Seasons > Christmas / Winter >
- MATLAB > Mathematics > Computational Geometry > Elementary Polygons >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
