How to count no. of output result from a program

2 ビュー (過去 30 日間)
Amit
Amit 2012 年 2 月 12 日
I am getting n no. of mean values of sub-matrices of a big matrix. Please tell me How I can count the no. of values.

回答 (2 件)

bym
bym 2012 年 2 月 12 日
perhaps
x = mean(magic(4));
counts = numel(x)
is what you are after

Image Analyst
Image Analyst 2012 年 2 月 12 日

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by