How to load cell *.mat into matlab coder for mex file generation
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Martin Andersson
el 2 de Mzo. de 2017
Comentada: Ryan Livingston
el 21 de Sept. de 2018
Hi, Im just trying out Matlab coder 3.0 but I don't know how to import presaved cells
problem:
test.mat % class cell size 955x2
test= load('test.mat');
test % 1x1 struct
test.test % class cell size 955x2
In Matlab coder i get:
Found unsupported class for variable using function 'load'. MATLAB class 'cell' found at 'test.test' is unsupported.
Use the command 'whos -file test.mat' to view the variables in the MAT file.
whos -file test.mat shows:
Name Size Bytes Class Attributes
test 955x2 1990906 cell
Hope someone could help me
0 comentarios
Respuesta aceptada
Prashant Arora
el 6 de Mzo. de 2017
Editada: Prashant Arora
el 6 de Mzo. de 2017
This is resulting because MATLAB Coder currently does not support cell arrays inside structures, not just for loading, but in other contexts either. This limitation is documented at the following link:
0 comentarios
Más respuestas (1)
Samir Khan
el 19 de Sept. de 2018
It is about time that this limitation must have been addressed.
1 comentario
Ryan Livingston
el 21 de Sept. de 2018
And it has:
As of MATLAB R2018a the limitation about cell arrays and load/coder.load has been lifted.
Ver también
Categorías
Más información sobre MATLAB Coder en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!