how to find out the index with its value from cell arrays?
1 次查看(过去 30 天)
显示 更早的评论
I have two cell arrays. In one cell, there is a value of the matrices with dimension 100 by 10 and other cell there is row and column number of the matrices100 by 2. the array length is same i.e. 10 for both. Now, I want to find out the the cell array with having the values from matrix (100 by 10), whose index is matched with other matrix (100 by 2).
But this error is coming 'Unable to use a value of type 'cell' as an index'. Please help me solve it.
T3=num2cell(tr1,1); % having values
V1=num2cell(v,1) % having rows and columns for 10 arrays
T3=T3';
for k1=1:10;
sigval{k1}=T3(V1(k1,1),:);
end
6 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!