How to plot the value of a matrix?

3 views (last 30 days)
Agnese Chini
Agnese Chini on 26 Sep 2021
Edited: Matt J on 26 Sep 2021
Hi, I have a matrix 7x21 double, there is a way to plot the result with this imput:
x axis: the columns
y axis: the rows

Accepted Answer

Matt J
Matt J on 26 Sep 2021
plot(yourMatrix)
  4 Comments
Matt J
Matt J on 26 Sep 2021
It is not obvious from the posted code why it does not plot. The simplified code below is something you can easily run to prove to yourself that it should work.
meanbasket=rand(4,7);
plot(meanbasket); legend

Sign in to comment.

More Answers (0)

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!