Sequential Search in MATLAB (Algorithm & Code)

Publicado el: 14 mayo 2019
en el canal de: Knowledge Amplifier
2,665
18

Algorithm:

It is one of the simplest techniques in which the searching of an item begins from the start of the array(from index position 1 in MATLAB or from index position 0 in JAVA).The process continues checking the existence of the given data in the list of array elements one by one , until the end of the array is reached.This process is called Sequential Search .


CODE:

x=input('Enter the array:');
Y=[];
y=input('Enter the number you want to search:');
for i=1:length(x)
if(x(i)==y)
Y=[Y i];
end
end


En esta página del sitio puede ver el video en línea Sequential Search in MATLAB (Algorithm & Code) de Duración hora minuto segunda en buena calidad , que subió el usuario Knowledge Amplifier 14 mayo 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,665 veces y le gustó 18 a los espectadores. Disfruta viendo!