Effacer les filtres
Effacer les filtres

How to store scalars(continuous data) as a vector

3 vues (au cours des 30 derniers jours)
V Vaishnavi Kumar
V Vaishnavi Kumar le 27 Oct 2012
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

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 27 Oct 2012
Modifié(e) : Azzi Abdelmalek le 27 Oct 2012
  15 commentaires
Azzi Abdelmalek
Azzi Abdelmalek le 5 Nov 2012
Kumar, what do you mean?
V Vaishnavi Kumar
V Vaishnavi Kumar le 5 Nov 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...?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Event Functions dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by