From: Pete on
In my model i have found acceleration with respect to time. How do i plot this on a graph and find the area under the curve?
Do i use 'trapz'? do i need to plot the graph first?
From: Walter Roberson on
Pete wrote:
> In my model i have found acceleration with respect to time. How do i
> plot this on a graph and find the area under the curve?
> Do i use 'trapz'? do i need to plot the graph first?

You do not need to plot the graph first in order to use trapz().
From: us on
"Pete " <peterclark(a)hotmail.com> wrote in message <hoe1v8$cqb$1(a)fred.mathworks.com>...
> In my model i have found acceleration with respect to time. How do i plot this on a graph and find the area under the curve?

> Do i use 'trapz'?
yes, a possible solution...

> do i need to plot the graph first?
no...

us
From: Pete on
Walter Roberson <roberson(a)hushmail.com> wrote in message <hoe2vh$c8b$1(a)canopus.cc.umanitoba.ca>...
> Pete wrote:
> > In my model i have found acceleration with respect to time. How do i
> > plot this on a graph and find the area under the curve?
> > Do i use 'trapz'? do i need to plot the graph first?
>
> You do not need to plot the graph first in order to use trapz().

what block do i use in the library browser to use trapz()?
From: Walter Roberson on
Pete wrote:
> Walter Roberson <roberson(a)hushmail.com> wrote in message
> <hoe2vh$c8b$1(a)canopus.cc.umanitoba.ca>...
>> Pete wrote:
>> > In my model i have found acceleration with respect to time. How do i
>> > plot this on a graph and find the area under the curve?
>> > Do i use 'trapz'? do i need to plot the graph first?
>>
>> You do not need to plot the graph first in order to use trapz().
>
> what block do i use in the library browser to use trapz()?

Sorry, I didn't catch that you were using Simulink the first time through. I
do not know how to use Simulink.

When you post Simulink related questions, it is best to specifically mention
Simulink; just mentioning "model" is not sufficient, as "model" has a number
of different meanings.