Copy cell array with syntax

11 visualizaciones (últimos 30 días)
notfrank
notfrank el 8 de Ag. de 2018
Editada: Stephen23 el 8 de Ag. de 2018
I have a function which outputs a cell array of cell arrays, as such:
A = { { 1, 'yes', [0,0;0,0] } , { 2, 'no', [1,0;0,1] } , { 3, 'maybe', [1,1;1,1] } }
I also have a class, and I want to assign a class property this value, but obviously I can't execute the function within the properties section. How do I copy this value with correct MATLAB cell array syntax so I can paste it within the class properties? If I try copying from the command window or the workspace I only end up copying "1x3 cell".

Respuestas (1)

Stephen23
Stephen23 el 8 de Ag. de 2018
Editada: Stephen23 el 8 de Ag. de 2018

Categorías

Más información sobre Cell Arrays en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by