필터 지우기
필터 지우기

Summary of the cell

조회 수: 2 (최근 30일)
fereshte
fereshte 2014년 10월 6일
편집: Stephen23 2014년 10월 6일
Hi I wrote a code that Simplifies the data in cells. outputs of this code is 250 lines that every five line are owned by one person. I have to click each row then see 3 cell belong to 3 images and I have to click again to see its information. I want to see this information after click each row in window with 250 lines and not need to click again. please help me. thank you so much
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2014년 10월 6일
편집: Azzi Abdelmalek 2014년 10월 6일
The question is not clear for me
fereshte
fereshte 2014년 10월 6일
편집: fereshte 2014년 10월 6일
when i run this code,it generate cell array with 250 rows.with click on each row, you see a 1*3 cell array.i should to click again on each cell in 1*3 cell array to see information.i attached an image that marked with 1,2 and3. i want remove 2 step. i want after the first step, informations in the third stage of the cell is shown in a cell and not separated(a cell with 3*21 array).

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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 10월 6일
If your data looks like
a={{1:2 3:4 5:6};{7:8 9:10 11:12}}
Use
out=cell2mat([a{:}]')
  댓글 수: 1
fereshte
fereshte 2014년 10월 6일
its great.thank you so much for youre help.

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

추가 답변 (1개)

Stephen23
Stephen23 2014년 10월 6일
편집: Stephen23 2014년 10월 6일
If the vector sizes allow it, you could save your three numeric vectors together as one matrix, then this also removes the need to have one more level of nested cell arrays.
This means instead of
data_matrix = {{num_1x21,num_1x21,num_1x21};{num_1x21,...};...}
you can store it as
data_matrix = {num_3x21;num_3x21;...}
Even better would be to remove the cell array entirely:
data_matrix = num_Nx21
Keeping all the data in a numeric array has multiple advantages:

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by