(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

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).

2. Relevant equations

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

3. 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

When i plot y, the y axis and the x axis give numbers that don't make sense in the terms of the question. atleast i don't think they make sense. Have i done this right?Code (Text):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!

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Using Matlab to do basic convultions

**Physics Forums | Science Articles, Homework Help, Discussion**