How to store scalars(continuous data) as a vector

3 views (last 30 days)
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

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 27 Oct 2012
Edited: Azzi Abdelmalek on 27 Oct 2012
  15 Comments
V Vaishnavi Kumar
V Vaishnavi Kumar on 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...?

Sign in to comment.

More Answers (0)

Categories

Find more on Event Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!