필터 지우기
필터 지우기

how to split cell array values into two columns?

조회 수: 2 (최근 30일)
Prasanna
Prasanna 2017년 12월 5일
댓글: KL 2017년 12월 5일
I've a variable in cell array as
[2.13949546690144;56.9515770543056] [1.98550875192835;50.4110852121618] . . . . . I want to split it into two columns with two decimal-point numbers as
2.13 56.95
1.98 50.41
.
.
.
by removing open, close braces and semicolon such as [ ; ]

답변 (1개)

KL
KL 2017년 12월 5일
one way:
C = {[2.13949546690144;56.9515770543056]};
A = round([C{:}].'*100)/100
A =
2.1400 56.9500
  댓글 수: 8
Prasanna
Prasanna 2017년 12월 5일
It works. thank you very much!!.
KL
KL 2017년 12월 5일
My pleasure!

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

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by