Converting a 1x1 cell array to a vector

조회 수: 9 (최근 30일)
Justin
Justin 2020년 8월 19일
댓글: Justin 2020년 8월 19일
I have a transfer function. Lets call it xfer. So,
I need to work with the individual coefficients in the denominator. When I call xfer.den, MATLAB returns a 1x1 cell array with all coeficients contained in a single cell seperated by commas. See snips below.
I would like to have this in either a 1x4, or 4x1, double like shown below
Is there a way to have matlab make this conversion? How do I call an individual coefficient ( i.e. xfer(3)=3 )

채택된 답변

KSSV
KSSV 2020년 8월 19일
Read about cell2mat.
  댓글 수: 1
Justin
Justin 2020년 8월 19일
Thank you. This is very helpful. It the solution to my problem.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by