Converting a 1x1 cell array to a vector

8 visualizaciones (últimos 30 días)
Justin
Justin el 19 de Ag. de 2020
Comentada: Justin el 19 de Ag. de 2020
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 )

Respuesta aceptada

KSSV
KSSV el 19 de Ag. de 2020
Read about cell2mat.
  1 comentario
Justin
Justin el 19 de Ag. de 2020
Thank you. This is very helpful. It the solution to my problem.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by