(Old version here)
Example console output (files can be selected within a GUI window):
which matlab version does this script work on? I used it on matlab 2013b but it gave me the following error:
Undefined variable “matlab” or class “matlab.lang.makeUniqueStrings”.
Error in import_dspace_mat_to_simulink_ts (line 20)
ynames = matlab.lang.makeUniqueStrings(ynames);
any chance you can help?
I actually have used the code on matlab 2018 and it worked, any chance you can hint to a workaround for it to work on 2013b?
the function matlab.lang.makeUniqueStrings was introduced in MATLAB R2014a, so you need to either (a) use a version >=R2014a or (b) reimplement the functionality of this method. It just makes sure that you do not have duplicate names, e.g. by creating the names “yval_1″,”yval_2” instead of “yval”,”yval”. If that’s not a problem with your data you might be able to (c) just comment out line 20 which calls the function.
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.