Trouble plotting data in table

3 次查看(过去 30 天)
Hi, I am trying to plot my one dimensional arrays into a table, however instead of getting data, I am getting [1x12 double] instead of my 12 data points. How can I get the data to appear instead of the [1x12 double]? My problem is identical to one presented here:

采纳的回答

Star Strider
Star Strider 2021-9-3
How can I get the data to appear instead of the [1x12 double]?’
The ‘[1 x 12 double]’ is a row vector by definition.
For best results, table arrays work best with column vectors.
Transpose it to a column vector and the table should be happy (so long as the other variables are then also (12x1) column vectors).
.
  2 个评论
TOK
TOK 2021-9-3
Transposing my data worked, thanks for the prompt answer!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by