Version (1.55 KB) by N/A
Gives dimensions of a television or rectangle, given the diagonal size and aspect ratio.
Updated Fri, 23 Jan 2009 15:30:13 +0000

View License

This function accepts the diagonal size (the size usually advertised) in inches of a television's screen, as well as the aspect ratio of that television, as inputs, and returns the width and height of the television screen in inches. Technically, this function will give the width and height of any rectangle where only the diagonal size and aspect ratio are known.

Enjoy! :o]

Cite As

N/A (2024). tv_dimensions (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Aspect Ratios and Layout in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes