data extraction from a cell – indexing
Hi
in the MATLAB programming course (https://matlabacademy.mathworks.com/R2024a/portal.html?course=mlpr#chapter=2&lesson=6§ion=1) it is explained how cell array indexing works:
"You can index into a cell array using standard MATLAB indexing with parentheses, (). this returns a portion of the orgiginal cell array, and is therefore itself a cell array.
You can access the contents of cells in a cell array by indexing with curly braces, {}, rather than parentheses, ()."
Does this mean that { } dereference a pointer whereas () gives a pointer?
LisaHi
in the MATLAB programming course (https://matlabacademy.mathworks.com/R2024a/portal.html?course=mlpr#chapter=2&lesson=6§ion=1) it is explained how cell array indexing works:
"You can index into a cell array using standard MATLAB indexing with parentheses, (). this returns a portion of the orgiginal cell array, and is therefore itself a cell array.
You can access the contents of cells in a cell array by indexing with curly braces, {}, rather than parentheses, ()."
Does this mean that { } dereference a pointer whereas () gives a pointer?
Lisa Hi
in the MATLAB programming course (https://matlabacademy.mathworks.com/R2024a/portal.html?course=mlpr#chapter=2&lesson=6§ion=1) it is explained how cell array indexing works:
"You can index into a cell array using standard MATLAB indexing with parentheses, (). this returns a portion of the orgiginal cell array, and is therefore itself a cell array.
You can access the contents of cells in a cell array by indexing with curly braces, {}, rather than parentheses, ()."
Does this mean that { } dereference a pointer whereas () gives a pointer?
Lisa extract data, cell array MATLAB Answers — New Questions