How to draw below graph in MATLAB?

Answers (1)

Walter Roberson
Walter Roberson on 23 Nov 2021
Edited: Walter Roberson on 23 Nov 2021
To draw the rectangles, you can use fill() or you can use rectangle() with 'FaceColor' option.
To put in the text, you can use text()

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Products

Release

R2021b

Asked:

on 23 Nov 2021

Edited:

on 23 Nov 2021

Community Treasure Hunt

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

Start Hunting!