Cell Array Mimic

版本 1.1.0.0 (3.7 KB) 作者: Will Jackson
This is a class which mimics a cell array by implementing several cell array functions.
516.0 次下载
更新时间 2010/6/4

查看许可证

CAindex mimics a cell array by overloading the following functions,

'CAindex'
'ctranspose'
'disp'
'end'
'horzcat'
'numel'
'plot'
'size'
'subsasgn'
'subsref'
'transpose'
'vertcat'

The attached test file illustrates the different operations it can perform. The way it differs from a normal cell array is that I can call it like this,

C('ColumnTitle')

which is the same as

CELLARRAY(:,x)

if the element in CELLARRAY(1,x) is 'ColumnTitle'

Also,

C{'FirstColumnTitle'}

works similarly.

This was motivated by the desire to mimic a cell array with only subtle differences which is one of the more challenging things to do with MATLAB classes.

引用格式

Will Jackson (2024). Cell Array Mimic (https://www.mathworks.com/matlabcentral/fileexchange/27825-cell-array-mimic), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Updated Copyright

1.0.0.0