Path: news.mathworks.com!not-for-mail
From: "Kola Ogidi" <kko_ogidi@yahoo.co.uk>
Newsgroups: comp.soft-sys.matlab
Subject: Delayed Unit Step (Heaviside) Function on Matlab
Date: Mon, 25 May 2009 10:00:04 +0000 (UTC)
Organization: University of Bolton
Lines: 19
Message-ID: <gvdq74$6mf$1@fred.mathworks.com>
Reply-To: "Kola Ogidi" <kko_ogidi@yahoo.co.uk>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1243245604 6863 172.30.248.37 (25 May 2009 10:00:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 25 May 2009 10:00:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1852358
Xref: news.mathworks.com comp.soft-sys.matlab:542334


Hi,

I'm trying to create a variable which holds a delayed unit step function which starts at 64 (rather than the normal unit step function which starts at 0).  I named this variable Heavisidesixtyfour and used the following statement to try to implement it:

heavisidesixtyfour=(t>=64);

I also set the value at 63 (taking into account a problem I encountered recently which was resolved by including 0 time in my count).  However, I am getting the following error message whichever way I try to run it:

??? Error using ==> mtimes
Inner matrix dimensions must agree.

I had previously created the normal unit step function as follows:

heaviside=(t>=0);

This worked ok but I'm not sure if this might have to do with the problem I'm encountering.  Could you please advise me on what I need to do to achieve my aim.

Thanks in advance.
Kola