Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{info}
This article is devoted to *MatLab* applications which use the [SAP2000|sap2000:home] [API|kb:API].
{info}

h1. Single-cell arrays

*MatLab*To defaultensure settingscompatibility store all numeric values within the double-precision floating-point numeric class. between {new-tab-link:http://www.mathworks.com/products/matlab/}MatLab{new-tab-link} convertsand arraysthe with aSAP2000 [API|kb:API], single-cell cellarrays (i.e. 1x1 matrices) toshould abe regulardimensioned double.as This2x1 posesmatrices, athen problem whenonly the APIfirst is expecting array, but it can be resolved by using the following approach:

For compatibility between MatLab and API, please dimension each single-cell array as a 2x1 matrix and use only the first cell of thecell should be used. By default, MatLab settings store numeric values within the double-precision floating-point numeric class. This would otherwise pose a problem since the API expects an array.

{hidden-content}
*Related emailEmail:*
* {email:date=5/26/2011|from=bt|to=rs|subject=Handling of arrays with single element in Matlab|comment=|id=7635970}

*Related incidentIncident:*
* {incident:no=35420|comment=Confirmation that the above works.}
{hidden-content}