re=1:3:254; pe=3:5:256; for sa=L(re:pe,re:pe) maxi=max(sa) maximum=max(maxi) end in this i want if re=1 then pe=3 and increase the value re & pe by 1 every time

 採用された回答

David Sanchez
David Sanchez 2015 年 1 月 12 日

0 投票

re=1:3:254;
pe=3:5:256;
for sa=L(re:pe,re:pe) % no idea what is _L_ or what you try to do here
maxi=max(sa)
maximum=max(maxi)
end
if re == 1
pe = 3;
re = re +1;
pe = pe +1;
end

1 件のコメント

sachit
sachit 2015 年 1 月 12 日
L is a matrix of 256*256*3 and your code is only giving 3 values. rather it must give 256 values

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

質問済み:

2015 年 1 月 12 日

コメント済み:

2015 年 1 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by