フィルターのクリア

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 Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by