Display first columns and rows of a table

19 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2021 年 8 月 18 日
コメント済み: Cris LaPierre 2021 年 8 月 19 日
Function head displays "Get top rows of table, timetable, or tall array."
The example has "Create a table that contains 100 rows and five variables."
But my table has 100 variables (say). In this case head does not disply the output cleanly (in Jupyter).
Is there any function to display the top rows and *columns* of table? Or any other workaround?

採用された回答

Cris LaPierre
Cris LaPierre 2021 年 8 月 18 日
The head function is just a helper function. Under the hood, it is just using indexing. Ch 5 of MATLAB Onramp will introduce you to the fundamentals of indexing in MATLAB. Once you understand that, you can use indexing to create your own customized display of a table.
Tables are a little nuanced, so read through the Access Data in Tables page to understand how to use indexing with tables.
  4 件のコメント
alpedhuez
alpedhuez 2021 年 8 月 19 日
I had checked that document before posting and could not find the option, Thus I posted to check.
Cris LaPierre
Cris LaPierre 2021 年 8 月 19 日
Sounds like a potential improvment to the function. If you think it should be an option, I recommend you submit it as a suggestion to MathWorks. You can do that here. Select Create Service Request > Technical Support.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by