multiply large numeric two array and convert that array in Binary
Mostra commenti meno recenti
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 Commenti
Guillaume
il 25 Lug 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
il 25 Lug 2018
Guillaume
il 25 Lug 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
il 25 Lug 2018
Guillaume
il 25 Lug 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
il 1 Ago 2018
Guillaume
il 1 Ago 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
il 1 Ago 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
il 2 Ago 2018
stuti
il 2 Ago 2018
Walter Roberson
il 2 Ago 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.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!