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

답변 (1개)

madhan ravi
madhan ravi 2020년 7월 14일

0 개 추천

Wanted = cat(1, cell_array{:})

댓글 수: 2

Vishnu Dhakad
Vishnu Dhakad 2020년 7월 14일
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.
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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2020년 7월 14일

댓글:

2020년 7월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by