Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
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.
Cita come
Will Jackson (2026). Cell Array Mimic (https://it.mathworks.com/matlabcentral/fileexchange/27825-cell-array-mimic), MATLAB Central File Exchange. Recuperato .
Informazioni generali
- Versione 1.1.0.0 (3,72 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
