- #1

- 45

- 0

## Homework Statement

This is more of a imaging/physiological course but it uses convolutions and i can understand the applications, i just need help writing the matlab script to give meaningful answers.

The problem asks that we use matlab to convolute 2 functions:

x(t) = a*t

^{b}*exp(-ct)

where a=0.1 b=1.5 c=0.01

and

h(t) = dexp(-t/r)

where d = 0.1ml

^{-1}and r = 60 min

There are units for x = micrograms/min. (this means d has to = 0.0001) x(t) is the absorption rate and h(t) is the impulse response function. y(t) would equal the concentration.

The idea is to plot y(t) using the matlab conv function for x(t) and h(t).

## Homework Equations

Im not sure what goes here ive given most of the information above.

## The Attempt at a Solution

I am not very good with matlab but what i did was create a time vector using the linspace fucntion. Heres the script

Code:

```
t = linspace(0,10,100);
a = 0.1;
b=1.5;
c=0.01;
alpha=0.1;
tao=60;
x=a.*t.^b.*exp(-c.*t);
h=alpha.*exp(-t./tao);
y=conv(x,t);
plot(y)
```

Thanks for the help!