Convert MATLAB data to 1QN format and save it to the file for ISE. 1 qnise

Source: Internet
Author: User

Convert MATLAB data to 1QN format and save it to the file for ISE. 1 qnise

The data is in the format of one-digit sign bit, an integer, and eight decimal places.

N = 64; n = 1: N; x = fix (2 ^ 8 * sin (2 * pi * n/N); % 8 decimal places, multiplied by 2 ^ 8, fix function truncation integer for I = 1: 64% set the symbol bit if (x (I)> = 0) x (I) = x (I ); % positive number signs: 0 else x (I) = bitset (uint16 (-x (I), 10) % set the 10th bits of x to 1 (symbol bit) endendfid = fopen ('e: \ sin.txt ', 'wt'); fprintf (fid, '% x \ n', x); fclose (fid );

References:

Http://blog.csdn.net/mengyafei43/article/details/9290997

Http://www.cnblogs.com/feitian629/archive/2013/09/06/3305695.html

Http://blog.csdn.net/jbb0523/article/details/7498254


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.