Different way of representation

2 vues (au cours des 30 derniers jours)
Ganesh Kini
Ganesh Kini le 8 Juin 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 commentaires
madhan ravi
madhan ravi le 8 Juin 2020
Are you using MATLAB?
Ganesh Kini
Ganesh Kini le 8 Juin 2020
Yes Madhan

Connectez-vous pour commenter.

Réponse acceptée

David Hill
David Hill le 8 Juin 2020

Plus de réponses (1)

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

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by