Effacer les filtres
Effacer les filtres

How to load cell *.mat into matlab coder for mex file generation

1 vue (au cours des 30 derniers jours)
Martin Andersson
Martin Andersson le 2 Mar 2017
Commenté : Ryan Livingston le 21 Sep 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

Réponse acceptée

Prashant Arora
Prashant Arora le 6 Mar 2017
Modifié(e) : Prashant Arora le 6 Mar 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:

Plus de réponses (1)

Samir Khan
Samir Khan le 19 Sep 2018
It is about time that this limitation must have been addressed.
  1 commentaire
Ryan Livingston
Ryan Livingston le 21 Sep 2018
And it has:
As of MATLAB R2018a the limitation about cell arrays and load/coder.load has been lifted.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by