multiply large numeric two array and convert that array in Binary
Show older comments
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 Comments
Guillaume
on 25 Jul 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
on 25 Jul 2018
Guillaume
on 25 Jul 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
on 25 Jul 2018
Guillaume
on 25 Jul 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
on 1 Aug 2018
Guillaume
on 1 Aug 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
on 1 Aug 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
on 2 Aug 2018
stuti
on 2 Aug 2018
Walter Roberson
on 2 Aug 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.
Accepted Answer
More Answers (0)
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!