Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
{info} This article is devoted to *MatLab* applications which use the [SAP2000|sap2000:home] [API|kb:API]. {info} h1. Single-cell arrays To ensure compatibility between {new-tab-link:http://www.mathworks.com/products/matlab/}MatLab{new-tab-link} and the SAP2000 [API|kb:API], each single-cell array (1x1 matrix) should be dimensioned as a 2x1 matrix, then the value should be addressed to the first cell. By default, MatLab settings store numeric values within the double-precision floating-point numeric class, which would otherwise pose a problem since the API expects an array. {hidden-content} *Related Email:* * {email:date=5/26/2011|from=bt|to=rs|subject=Handling of arrays with single element in Matlab|comment=|id=7635970} *Related Incident:* * {incident:no=35420|comment=Confirmation that the above works.} {hidden-content}
Wiki Markup
Info

This article is devoted to MatLab applications which use the SAP2000 API.

Single-cell arrays

To ensure compatibility between and the SAP2000 API, each single-cell array (1x1 matrix) should be dimensioned as a 2x1 matrix, then the value should be addressed to the first cell. By default, MatLab settings store numeric values within the double-precision floating-point numeric class, which would otherwise pose a problem since the API expects an array.