write table on screen

3 ビュー (過去 30 日間)
aldo
aldo 2023 年 7 月 9 日
コメント済み: Walter Roberson 2023 年 7 月 10 日
I should write some data in an excel format (table) but displayed on the monitor Each box is different from the others (example: a1= number but a5= string) as in the example
What class (table...) do you recommend me to use

回答 (2 件)

Vilém Frynta
Vilém Frynta 2023 年 7 月 9 日
I'd use table, where you can store all the info on your picture. In MATLAB, you can convert most of the information from one data type to another, so for example you can convert string to numbers and vice–versa. So, you can store everything as a string for example, but if numbers are needed for calculation, you can convert strings into doubles.
This is just general idea. Might suit your project as well but depends on all your needs and plans.
  2 件のコメント
aldo
aldo 2023 年 7 月 10 日
it's possible to color all cell in white?
Walter Roberson
Walter Roberson 2023 年 7 月 10 日
You could try addStyle with BackgroundColor set to white -- that might perhaps override the alternate-rows shading that happens by default.

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


Walter Roberson
Walter Roberson 2023 年 7 月 10 日
Create a cell array and use writecell
  1 件のコメント
aldo
aldo 2023 年 7 月 10 日
i don't want to write in excel...i want display it in app designer table

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by