convert cell to integer
286 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a 1*1 cell in which its content is ineger. I need to convert the content to integer (no cell anymore just like a number itself)
how can I do that?
I tied cell2mat but did not work. It is like this now:
kar =
1×1 cell array
{[3]}
3 Commenti
madhan ravi
il 16 Ago 2019
whos kar % Paste the results from command window here
Risposte (1)
Star Strider
il 16 Ago 2019
If ‘kar’ is initially:
kar = {{[3]}};
try this:
n = cell2mat(kar{:})
producing:
n =
3
2 Commenti
Vedere anche
Categorie
Scopri di più su Data Type Conversion 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!