Filter löschen
Filter löschen

Cell array convert into double

2 Ansichten (letzte 30 Tage)
Vishnu Dhakad
Vishnu Dhakad am 14 Jul. 2020
Kommentiert: madhan ravi am 14 Jul. 2020
Hi,
I have below cell array of numeric values, I want to convert them into double array Input:
{[ 315]}
{[ 315]}
{[ 315]}
{[337.5000]}
{[337.5000]}
Please find the attached file

Antworten (1)

madhan ravi
madhan ravi am 14 Jul. 2020
Wanted = cat(1, cell_array{:})
  2 Kommentare
Vishnu Dhakad
Vishnu Dhakad am 14 Jul. 2020
Thanks for answer
I tried your code but I got error
Wanted = cat(1, WD01{:})
Error using cat
Dimensions of arrays being concatenated are not consistent.
madhan ravi
madhan ravi am 14 Jul. 2020
cell_array =
5×1 cell array
{[ 315]}
{[ 315]}
{[ 315]}
{[337.5000]}
{[337.5000]}
>> Wanted = cat(1, cell_array{:})
Wanted =
315.0000
315.0000
315.0000
337.5000
337.5000

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by