jlrun

Run Julia statements from Nelson.

📝 Syntax

  • jlrun(code)

  • outvars = jlrun(code, outputs)

  • outvars = jlrun(code, outputs, jlName, jlValue)

📥 Input argument

  • code - a string scalar, string array, character vector, character array.

  • jlName, jlValue - Input arguments name and value

  • outputs - string array: Julia variable names.

📤 Output argument

  • outvars - One or more Nelson workspace variable names returned as valid Julia types.

📄 Description

jlrun(code) function executes Julia statements present in the code string within the Julia interpreter.

Variables generated by thejlrun function remain persistent, allowing their usage in subsequentjlrun calls.

outvars = jlrun(code, outputs) Julia variables specified in outputs are returned to Nelson.

The values of these variables are captured inoutvars.

outvars = jlrun(code, outputs, jlName, jlValue), thecode is executed with assigned input and output variable names using Nelson data passed through one or more name-value arguments.

💡 Examples

🔗 See also

jlrunfile, jlenv, Julia types supported.

🕔 History

Version
📄 Description

1.12.0

initial version

Last updated

Was this helpful?