Canadian Flag

version (2.81 KB) by Denis Gilbert
Draws the Canadian flag within an existing axes


Updated 14 Feb 2002

View License

Draws the Canadian flag within an existing axes or within a new figure if no input arguments are provided.

Input arguments allow the user to specify the location of the lower left corner of the flag within an existing axes. The width of the flag is specified in native x-axis units. The height of the flag is then internally calculated in such a way that the standard 2:1 ratio of flag width to flag height (in terms of numbers of pixels) is enforced regardless of the existing axes' DataAspectRatio.

Cite As

Denis Gilbert (2022). Canadian Flag (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!