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

5 vues (au cours des 30 derniers jours)
image processing
  7 commentaires
Stephen23
Stephen23 le 18 Août 2018
@Mohamed ouahidi: what values does n have? If it is less than three then that loop will not run.
Mohamed ouahidi
Mohamed ouahidi le 18 Août 2018
I use image 'cameraman.tif' in this case n = 44

Connectez-vous pour commenter.

Réponse acceptée

Amir Xz
Amir Xz le 18 Août 2018
" 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 commentaires
Amir Xz
Amir Xz le 19 Août 2018
Use cell array:
subH{k-1} = x( idxX(k) + 1 : idxX((k+1)) );
Mohamed ouahidi
Mohamed ouahidi le 19 Août 2018
the problem is solved Thank you so much

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Produits


Version

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by