Please how can I store values of variable size vectors inside a loop for

1 回表示 (過去 30 日間)
Mohamed ouahidi
Mohamed ouahidi 2018 年 8 月 17 日
コメント済み: Mohamed ouahidi 2018 年 8 月 19 日
image processing
  7 件のコメント
Stephen23
Stephen23 2018 年 8 月 18 日
@Mohamed ouahidi: what values does n have? If it is less than three then that loop will not run.
Mohamed ouahidi
Mohamed ouahidi 2018 年 8 月 18 日
I use image 'cameraman.tif' in this case n = 44

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

採用された回答

Amir Xz
Amir Xz 2018 年 8 月 18 日
" x( idxX(k) + 1 : idxX((k+1)) )" is a vector, so it should store in a vector too.
Use this one:
subH(k,:) = x( idxX(k) + 1 : idxX((k+1)) )';
  7 件のコメント
Amir Xz
Amir Xz 2018 年 8 月 19 日
Use cell array:
subH{k-1} = x( idxX(k) + 1 : idxX((k+1)) );
Mohamed ouahidi
Mohamed ouahidi 2018 年 8 月 19 日
the problem is solved Thank you so much

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by