필터 지우기
필터 지우기

Cell array to table in a display mode

조회 수: 2 (최근 30일)
Wesso
Wesso 2021년 1월 1일
댓글: Wesso 2021년 1월 1일
Hi,
I have a cell array of stored unique values that has the following format:
when I tried to look at these unique values todecide on which one is problematic using cell2table function, I ended up with a table in the following format:
the question is how to display the table in a way that I can see all values instead of clicking on each cell to figure out the values
  댓글 수: 4
Ive J
Ive J 2021년 1월 1일
You have a nested cell array of different sizes within each cell, so it depends on how you wanna show it in a readable manner. One option is to join elements in each cell with a custom delimiter.
tab = array2table(cellfun(@(x)join(string(x), ';'), Uvalues));
However it's clumsy since there is considerable difference in size between cell elements. Bear in mind that tables are usefull for providing visual aid on structured data (aside from other purposes). Your data is not well structured unless you have something else in mind.
Wesso
Wesso 2021년 1월 1일
great this is exactly what i want. I want to visually identify the values that i don't want in my column.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by