how can I change data type of an array?

2 views (last 30 days)
Harshit Baghel
Harshit Baghel on 31 Jul 2017
Answered: Guillaume on 1 Aug 2017
I have 1 array with test data in real values. I want to convert it into fixed point how can this be done.
  2 Comments
Stephen23
Stephen23 on 31 Jul 2017
Edited: Stephen23 on 31 Jul 2017
Harshit Baghel's "Answer" moved here and formatted correctly:
I am using fi function to change the data type of the array it is showing the error shown below
Trial>> d = fi(s,1,10,23)
Error using embedded.fi/fifactory
Unable to check out a license for the Fixed-Point Designer.
Error in fi (line 222)
a = embedded.fi(varargin{:});
I am using 30 days trial version currently.

Sign in to comment.

Answers (1)

Guillaume
Guillaume on 1 Aug 2017
I don't see what's unclear about the error message. You do not have a license for the Fixed-Point toolbox (or it's not installed properly).
If you're supposed to have such license, then contact Mathworks or whomever is responsible for managing your license.

Categories

Find more on Shifting and Sorting Matrices 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!