Matlab version: R2014b OS: Windows 7 64bit Addon toolbox: RF toolbox
I have some code I need to compile into standalone for use in a manufacturing environment. The code uses the read function out of the RF toolbox to read touchstone 1.0 files and process them. The code compiles and runs fine if the top level code that is compiled is a script. However, I need to pass variables from the command line, so I think I need the top level code to be a function. However, the code fails when run when the top level code is a function, giving the following error:
Error using rfdata.reference/set Invalid parameter/value pair arguments.
Error in rfdata.data/read (line 73)
The offending function looks like this:
function [S, f] = RF_ReadTouchstone( filename )
I have verified that the variables are propagating through the code properly. It seems like something strange the compiler is doing.