Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
image processing
  7 comentarios
Stephen23
Stephen23 el 18 de Ag. de 2018
@Mohamed ouahidi: what values does n have? If it is less than three then that loop will not run.
Mohamed ouahidi
Mohamed ouahidi el 18 de Ag. de 2018
I use image 'cameraman.tif' in this case n = 44

Iniciar sesión para comentar.

Respuesta aceptada

Amir Xz
Amir Xz el 18 de Ag. de 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 comentarios
Amir Xz
Amir Xz el 19 de Ag. de 2018
Use cell array:
subH{k-1} = x( idxX(k) + 1 : idxX((k+1)) );

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by