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
Nesta página do site você pode assistir ao vídeo on-line Sequential Search in MATLAB (Algorithm & Code) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Knowledge Amplifier 14 Maio 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 2,665 vezes e gostou 18 espectadores. Boa visualização!