How to accesss the columns of a matrix in a cell array in matlab?

I have a cell 8X1.The elements are matrices of m-by n dimensions. I want to take the count of the elements in the nth row..

댓글 수: 1

I want to take the count of the elements in the nth row: what does that mean?

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

답변 (1개)

% Example
m=4;
n=5;
A=arrayfun(@(x) rand(m,n),(1:8)','un',0)
%--------------------------------------
for k=1:numel(A)
last_row=A{k}(m,:)
%do
end

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

질문:

2014년 2월 15일

댓글:

2014년 2월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by