What is the difference between cell and array matrix.

21 次查看(过去 30 天)
The example is how to take the data from 65th row of the fifth cell Can I think about taking the data at row 65 and column fifth in a vector?

回答(2 个)

KSSV
KSSV 2017-9-1
You must use {} to extract elements from cell..To extract 65th row and column 4 data use from a cell array A:
A{65,4}
Check the below example:
A = cell(3,3) ; % creating 3x3 random cell array
for i = 1:3
for j = 1:3
A{i,j} = rand(randperm(10,1)) ;
end
end
%%Extract 2nd row, 3rd column from A
A{2,3}

Image Analyst
Image Analyst 2018-12-10
I think the FAQ has an excellent, intuitive explanation.

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by