Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: mean block in simulink
Replies: 2   Last Post: Nov 26, 2012 10:23 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
tulika Roy

Posts: 5
Registered: 10/4/12
Re: mean block in simulink
Posted: Nov 26, 2012 10:23 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

James Allison <james.allison@mathworks.com> wrote in message <hoqc8j$9pe$3@fred.mathworks.com>...
> It sounds like you have a block in your model with a continuous sample
> time specified (i.e., a 0 in the sample time field).
> -James
> Daniel wrote:

> >
> >
> > I am trying to use the mean block to calculate a running average of my
> > input. I currently take my input from the workspace in the form of an
> > array, with the first column being the time and simply ascending
> > integers and the second column being the data. I connect the "from
> > workspace" block to the mean and then sent the result to the scope. The
> > configuration parameters are for fixed step time and a disrete solver.
> >
> > However, when I try to run the sim, I get an error saying that all
> > sample times must be discrete. Aren't they already? What am I doing wrong?
> >
> > Thanks
> > D

how can I attach my workspace output here if I want to ask question by showing that?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.