Azzera filtri
Azzera filtri

Removing cell arrays from code

1 visualizzazione (ultimi 30 giorni)
Jess
Jess il 28 Mar 2013
Hi all,
I've been trying to convert some code to be Matlab Coder compliant, therefore having to remove cell arrays.
I've got this line of code:
myvalues = unique({input_variable.(thefield)});
disp(size(myvalues));
disp(myvalues);
The output this code gives me is:
1 1
'mystring1'
1 1
'mystring2'
Just trying to find a solution on how to remove the cell arrays ( {} ) from the code, so it would work with Matlab Coder. Been trying out structures, and arrays of structures, however with no great luck. So any tips and suggestions would be appreciated! Thanks.
  2 Commenti
Walter Roberson
Walter Roberson il 28 Mar 2013
So to confirm, each input_variable.(thefield) is a string ?
Jess
Jess il 28 Mar 2013
Yes, it is!

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su MATLAB Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by