필터 지우기
필터 지우기

Trouble plotting data in table

조회 수: 3 (최근 30일)
TOK
TOK 2021년 9월 3일
댓글: Star Strider 2021년 9월 4일
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!
Star Strider
Star Strider 2021년 9월 4일
As always, my pleasure!
.

댓글을 달려면 로그인하십시오.

추가 답변 (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