You can make a value a double scalar by first assigning it as a double and then making sure it is not an array. Here's an example code snippet to demonstrate this in AppDesigner:
main.m272 chars8 lines
In this code snippet, myValue
is assigned a double value of 5
, and then a check is performed to ensure it is a scalar. If it is not a scalar, it is modified to be a scalar using indexing.
gistlibby LogSnag