Different way of representation

2 次查看(过去 30 天)
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 ?

采纳的回答

David Hill
David Hill 2020-6-8

更多回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by