selecting values

1 visualización (últimos 30 días)
FIR
FIR el 29 de Dic. de 2011
i have 1000 values,i want to select 300 first 300 values in it and display please help

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 29 de Dic. de 2011
A - your array with size 1000x1, e.g.:
A = randi(125,1000,1);
out = A(1:300)
fprintf('%d\n',out)
  2 comentarios
FIR
FIR el 29 de Dic. de 2011
path='D:\Dataset\'
files=dir(strcat(path,'*.jpg'))%
file names that match this specification *.jpg
for k=1:numel(files)%numel(files)
file_name=files(k).name;
image_name=strcat(path,file_name);
I=imread(image_name);
end
in this how how to count the number of images(if am calling some images from dataset folder)
Walter Roberson
Walter Roberson el 29 de Dic. de 2011
The number of images so far within the loop is k, and the number of total images is length(files)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Type Identification en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by