multiply large numeric two array and convert that array in Binary
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
stuti
el 25 de Jul. de 2018
Comentada: Walter Roberson
el 4 de Ag. de 2018
fileId=fopen('sinlookup.txt','r');
line_num=0;
lineData='0';
while ~feof(fileId)
line_num=line_num+1;
lineData=fgetl(fileId);
disp(['Line ',num2str(line_num) , ': ' lineData ]);
end
13 comentarios
Walter Roberson
el 2 de Ag. de 2018
You have two arrays of different lengths, just like this small example has two arrays of different lengths. How would you like the two to be multiplied? Use the short example to illustrate the result you would want.
Respuesta aceptada
Walter Roberson
el 2 de Ag. de 2018
I think you want to do filtering, which could be done by conv()
2 comentarios
Walter Roberson
el 4 de Ag. de 2018
I would buffer(LargeArray, 400) which would create a 400 x 165 array. Then you can multiply it column by column by your 400 array. If you have R2016b or later, that would look like
output = buffer(LargeArray, length(SmallerArray)) .* SmallerArray(:);
This would produce a 400 x 165 array which you could reshape into a vector if you wanted to.
Más respuestas (0)
Ver también
Categorías
Más información sobre Numeric Types en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!