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

1 回表示 (過去 30 日間)
Abin Krishnan
Abin Krishnan 2014 年 2 月 15 日
コメント済み: Abin Krishnan 2014 年 2 月 15 日
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 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 15 日
I want to take the count of the elements in the nth row: what does that mean?

サインインしてコメントする。

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 15 日
% 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

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by