Different way of representation

2 Ansichten (letzte 30 Tage)
Ganesh Kini
Ganesh Kini am 8 Jun. 2020
Beantwortet: madhan ravi am 8 Jun. 2020
Hi,
This might be one of the basic doubts, but still going to ask it
When i run a code i get the output as
opcon =
1×1 cell array
{'tc'}
I want the output t o is be
opcon = tc
How do i change it ?
  2 Kommentare
madhan ravi
madhan ravi am 8 Jun. 2020
Are you using MATLAB?
Ganesh Kini
Ganesh Kini am 8 Jun. 2020
Yes Madhan

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

David Hill
David Hill am 8 Jun. 2020
out=opcon{1};

Weitere Antworten (1)

madhan ravi
madhan ravi am 8 Jun. 2020
Opcon = cell2mat({'tc'}) % assuming they argument is a scalar

Kategorien

Mehr zu Matrix Indexing 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