How to plot this figure?

This figure is used to show the matrix 300*3. I do not know how to plot this figure? can someone help me? Thanks.

 Accepted Answer

hu
try this and adapt to your own needs
a = rand(300,3);
figure,imagesc(a);colormap('jet');colorbar

1 Comment

z cy
z cy on 10 Jun 2021
Thanks!!!
I find this function pcolor also can achieve similar figure.

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products

Tags

Asked:

on 10 Jun 2021

Commented:

on 10 Jun 2021

Community Treasure Hunt

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

Start Hunting!