Encode a digitized signal using a specific relation
2 ビュー (過去 30 日間)
古いコメントを表示
Good morning. I've got a digitized signal x in a .txt file and I have to encode it. The encoded signal g(x) is obtained by a specific mathematical relation, but I've no idea on how to apply this relation on such .txt file that contains all the information. This encoding should allow me to reduce data from samples of 16 bits to 8 bits in length. Does someone know if it exists a function which can help me in completing this task?
Thank you in advance
0 件のコメント
回答 (1 件)
Akhilesh Mishra
2017 年 9 月 8 日
Hello Paolo,
I think the easiest way to implement this encoding would be by first reading the contents of the .txt in the MATLAB workspace. Please try using the function 'fscanf' to read the contents of a text file into an array. Please refer to the link of this function and also go through the first example mentioned in this page - https://www.mathworks.com/help/matlab/ref/fscanf.html
Once you have the data as an array, you can apply the encoding or other operations on this data.
I hope this helps!
Thanks, Akhilesh
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!