MATLAB Answers

Different way of representation

조회 수: 5(최근 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 ?

  댓글 수: 2

madhan ravi
madhan ravi 8 Jun 2020
Are you using MATLAB?
Ganesh Kini
Ganesh Kini 8 Jun 2020
Yes Madhan

Sign in to comment.

채택된 답변

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

  댓글 수: 0

Sign in to comment.

추가 답변(1개)

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

  댓글 수: 0

Sign in to comment.


Translated by