multiply large numeric two array and convert that array in Binary
Mostrar comentarios más antiguos
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
Guillaume
el 25 de Jul. de 2018
I have no idea what the question in your title (which is near unreadable) relates to the code you've posted. The code you've posted simply display each line of a text file.
Please write, a clear question in the box above, not in the title. Ideally provide examples of input(s) and desired output(s).
stuti
el 25 de Jul. de 2018
Guillaume
el 25 de Jul. 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
fileId=fopen('signal.txt','r');
line_num=0;
lineData='0';
while ~feof(fileId)
line_num=line_num+1;
lineData=fgetl(fileId);
disp(['Line ',num2str(line_num) , ': ' lineData ]);
i have two different textfile with floating values no (sinlookup- 400 values ,signal - 30000 values ). i want to multiply those data to each other.
stuti
el 25 de Jul. de 2018
Guillaume
el 25 de Jul. de 2018
i want to continuously multiply sine and cos values to this signal numbers
I'm sorry I have no idea what that mean.
stuti
el 1 de Ag. de 2018
Guillaume
el 1 de Ag. de 2018
I understand array. What I don't understand is what you mean by multiply when the two arrays are of different length.
Could you give a simple example of two shorts arrays of different size and the corresponding result, using valid matlab syntax? E.g. if
array1 = [0.1 -0.2 0.3 -0.4]
array2 = 1:12
What would be the desired result?
Stephen23
el 1 de Ag. de 2018
Could you give a simple example of two shorts arrays of different size and the corresponding result, using valid matlab syntax? E.g. if
array1 = [0.1 -0.2 0.3 -0.4]
array2 = 1:12
What would be the desired result?
stuti
el 2 de Ag. de 2018
stuti
el 2 de Ag. de 2018
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
Más respuestas (0)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!