convert arraycell in array string

1 vue (au cours des 30 derniers jours)
aldo
aldo le 11 Juil 2023
Modifié(e) : aldo le 12 Juil 2023
>> class(risulRankingResult)
ans =
'cell'
it's possibile to convert in string?
  1 commentaire
James Tursa
James Tursa le 11 Juil 2023
What would be your desired output?

Connectez-vous pour commenter.

Réponse acceptée

Stephen23
Stephen23 le 11 Juil 2023
"it's possibile to convert in string?"
Probably. I am guessing that you want something like this:
C = {1;[2,34];[56,7,89]}
C = 3×1 cell array
{[ 1]} {[ 2 34]} {[56 7 89]}
F = @(v)join(string(v),',');
S = cellfun(F,C)
S = 3×1 string array
"1" "2,34" "56,7,89"
  6 commentaires
Stephen23
Stephen23 le 12 Juil 2023
"i want to use Sis.Rank_DisplayIdxSis (in a structure) now i must to convert it in arraycell..."
I presume by "arraycell" you actually mean a cell array.
It is unclear to me what you want to convert and what the problem is.
aldo
aldo le 12 Juil 2023
Modifié(e) : aldo le 12 Juil 2023
I presume by "arraycell" you actually mean a cell array. ==> yes
n Rank_DisplayIdxsis i use it for 2 solution:
1) display in a table in app designer and with your first statement i saved with comma in strings
2) now i want to use them as array of numbers (matrix) so I have to get from Rank_DisplayIdxsis an array of numbers

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by