フィルターのクリア

showing error in this line ? please do help us to get the output ?

2 ビュー (過去 30 日間)
venmal devi
venmal devi 2016 年 1 月 26 日
回答済み: Star Strider 2016 年 1 月 26 日
m1=max(max(A(i:i+95,j:j+127)));
  1 件のコメント
Stephen23
Stephen23 2016 年 1 月 26 日
編集済み: Stephen23 2016 年 1 月 26 日
I guess this is indexing related, but there is not enough information. Please edit your question and give us the complete error message. This means all of the red text.

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

回答 (1 件)

Star Strider
Star Strider 2016 年 1 月 26 日
You have to be certain your ‘A’ matrix is large enough so that your addressing does not access elements outside its index range.
This works:
A = randi(99, 200);
i = 10;
j = 20;
m1=max(max(A(i:i+95,j:j+127)));

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by