Different way of representation

2 visualizzazioni (ultimi 30 giorni)
Ganesh Kini
Ganesh Kini il 8 Giu 2020
Risposto: madhan ravi il 8 Giu 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 ?

Risposta accettata

David Hill
David Hill il 8 Giu 2020
out=opcon{1};

Più risposte (1)

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

Community Treasure Hunt

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

Start Hunting!

Translated by