http://www.mathworks.com/matlabcentral/newsreader/view_thread/328461
MATLAB Central Newsreader  Ploting a boxcar or mutliple rectangular function
Feed for thread: Ploting a boxcar or mutliple rectangular function
enus
©19942015 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
http://www.mathworks.com/images/membrane_icon.gif

Fri, 19 Apr 2013 23:41:10 +0000
Ploting a boxcar or mutliple rectangular function
http://www.mathworks.com/matlabcentral/newsreader/view_thread/328461#902804
A
Hello,<br>
<br>
This is my first post here in this forum. I hope I get what I want. <br>
<br>
I am a very beginner Matlab user. What I want to do is to plot multiple rectangle ( for fMRI block design , for ex: such as this one : __________ ( or baseline block baseline block baseline ..etc)<br>
Of course this is not a perfect example. The most important thing that I am looking to do is the timing. For example I want the the baseline starts from 0 and last for 20 seconds. Then the rectangular box or the block starts from 20 and last to 40 seconds and so on. So a total of, for example, 10 blocks, 5 baselines and 5 task or box or blocks. So the total time is 10*20=200 seconds. <br>
<br>
I tried different function in matlab such as rectwin or rectangularPulse but honestly I could not do it. <br>
<br>
NB: I wan not sure whether I should post this here or in the question section! <br>
<br>
Thanks