How to access the double cell 5*1 ?

조회 수: 3 (최근 30일)
Abdulmanem Aziza
Abdulmanem Aziza 2022년 11월 29일
댓글: Vims 2022년 11월 29일
Can anyone please provide a function for a cell to access the each value in respective column and row ?
5*1 double cell = structure of the data . Please find the attachment.
Need support from Level3 Matlab support team. Thank you

채택된 답변

David Hill
David Hill 2022년 11월 29일
Your question is not clear to me. If you just want to access your cell array.
load('vims.mat');
f{1}(2,3) %first cell, row 2 column 3
ans = -0.5459
  댓글 수: 1
Vims
Vims 2022년 11월 29일
Thanks now I will do it myself.

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

추가 답변 (1개)

Bjorn Gustavsson
Bjorn Gustavsson 2022년 11월 29일
You could use cell2mat to convert the 5x1 cell-array with elements n_j x 3 into a matrix with n_many x 3 and then proceed as per usual with regular matrices. Or you could handle each cell-element at a time:
for i1 = 1:size(vims,1)
currArray = vims{i1};
% the operations you want to do on each row in each cell-element goes
% here
end
HTH
  댓글 수: 1
Vims
Vims 2022년 11월 29일
I already convert it but it should be seperated as per requirements like there are 5 rows so each row include 3 column. If I want to change the data structure from n rows* 15 column. After 3 column, new column will be new raw of the current data sets. Hence you understand the concept of the structure of data but I want to it for millions of data hence it should be in loop and easy to access. Thank you

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

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by