how to import the data from the cell array?

조회 수: 2 (최근 30일)
ganesh s
ganesh s 2011년 12월 3일
hi i want to know how to import or use the data from the cell array(.MAT file). i have extracted the features of the 500 images and store it in cell array which of the size 500x1 with each row represent the single image of of size (1x19062).i want to use this data in some other MATLAB program but i don't know how to use it. i like to know 1.how to import this data in other MATLAB program. 2.how to use the data of each image as a variable in Other program 3.how to subtract the feature of the single image from this complete data(which is the extracted feature of 500 images)

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 12월 3일
Use it the same way as you use an ordinary array, just replace the () reference with {}. For example
d=rand(3);
d(2,3)
d(1,2);
c={1,2;3,4};
c{1,2}
c{2,2}
  댓글 수: 2
ganesh s
ganesh s 2011년 12월 3일
thanks sir
but i want to access the data in new MATLAB program which is store in cell array to find it's euclidean distance .but i don't know how to access or import or use the variable which is store in the cell array of size (500x1 with each row of size 1x1906)
Fangjun Jiang
Fangjun Jiang 2011년 12월 3일
try access it using Data{i}(j), or you can convert it to a matrix using cell2mat(Data)

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

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by