How to store scalars(continuous data) as a vector

2 visualizaciones (últimos 30 días)
an embedded matlab function block1 outputs scalars instantaneously, a set of sequential scalar outputs (ex: minimum 3 or more outputs) has to be stored as a vector, embedded fcn block2 accepts vector input and compares the elements in it, how instantaneous scalars can be stored as a vetor

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 27 de Oct. de 2012
Editada: Azzi Abdelmalek el 27 de Oct. de 2012
  15 comentarios
Azzi Abdelmalek
Azzi Abdelmalek el 5 de Nov. de 2012
Kumar, what do you mean?
V Vaishnavi Kumar
V Vaishnavi Kumar el 5 de Nov. de 2012
my faculty raised this question, when ZOH1 holds the values of three sample, for the next sample time, will it hold the next sample value with out resetting,or wil it have the previous values stored before
I simulated the ZOH1 block with display1 in your model, kept a display2 before ZOH1,
I saw that display1 showed values before simulation finishes, values in display2 were changing,
how it could be interpreted...?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by