multiply large numeric two array and convert that array in Binary
이전 댓글 표시
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
Guillaume
2018년 7월 25일
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
2018년 7월 25일
Guillaume
2018년 7월 25일
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
2018년 7월 25일
Guillaume
2018년 7월 25일
i want to continuously multiply sine and cos values to this signal numbers
I'm sorry I have no idea what that mean.
stuti
2018년 8월 1일
Guillaume
2018년 8월 1일
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
2018년 8월 1일
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
2018년 8월 2일
stuti
2018년 8월 2일
Walter Roberson
2018년 8월 2일
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!