フィルターのクリア

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

1 回表示 (過去 30 日間)
Martin Andersson
Martin Andersson 2017 年 3 月 2 日
コメント済み: Ryan Livingston 2018 年 9 月 21 日
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

採用された回答

Prashant Arora
Prashant Arora 2017 年 3 月 6 日
編集済み: Prashant Arora 2017 年 3 月 6 日
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:

その他の回答 (1 件)

Samir Khan
Samir Khan 2018 年 9 月 19 日
It is about time that this limitation must have been addressed.
  1 件のコメント
Ryan Livingston
Ryan Livingston 2018 年 9 月 21 日
And it has:
As of MATLAB R2018a the limitation about cell arrays and load/coder.load has been lifted.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by