write table on screen
조회 수: 3 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (2개)
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
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!