Path: news.mathworks.com!not-for-mail
From: "A " <om-turky11@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Ploting a boxcar or mutliple rectangular function
Date: Fri, 19 Apr 2013 23:41:10 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <kkskmm$aql$1@newscl01ah.mathworks.com>
Reply-To: "A " <om-turky11@hotmail.com>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1366414870 11093 172.30.248.46 (19 Apr 2013 23:41:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 19 Apr 2013 23:41:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 4249423
Xref: news.mathworks.com comp.soft-sys.matlab:793943

Hello,

This is my first post here in this forum. I hope I get what I want. 

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

I tried different function in matlab such as rectwin or rectangularPulse but honestly I could not do it. 

NB: I wan not sure whether I should post this here or in the question section! 

Thanks