How can I load MATLAB data files in the design function?
You can load ASCII text files in the design function, but you must assign them to a variable, as follows:
1. Save the data to an ASCII file. For example, in the script file you might have a statement such as the following:
save myrom.txt -ascii myrom;
2. In the design function, load the data and assign it to a variable:
sinerom = load('sinerom.txt');
The ASCII files allows the quantizer to see the values.
You cannot load binary files or use a statement such as "load -ascii myrom.mat" that does not assign the data to a variable. If there is a problem, it is reported in the Analyze step.