Filter löschen
Filter löschen

how to split cell array values into two columns?

2 Ansichten (letzte 30 Tage)
Prasanna
Prasanna am 5 Dez. 2017
Kommentiert: KL am 5 Dez. 2017
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 [ ; ]

Antworten (1)

KL
KL am 5 Dez. 2017
one way:
C = {[2.13949546690144;56.9515770543056]};
A = round([C{:}].'*100)/100
A =
2.1400 56.9500
  8 Kommentare
Prasanna
Prasanna am 5 Dez. 2017
It works. thank you very much!!.
KL
KL am 5 Dez. 2017
My pleasure!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by