Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: How to pass a 2-D image to a function
Date: Tue, 31 Jan 2012 03:52:10 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <jg7oha$v8$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1327981930 1000 172.30.248.35 (31 Jan 2012 03:52:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 31 Jan 2012 03:52:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2437060
Xref: news.mathworks.com comp.soft-sys.matlab:756227

Hi,

    I am getting the following error while passing a 2-D image to a function

Error using ==> mtimes
MTIMES is not fully supported for integer classes. At least one input must be scalar.

The error is at the following line

G=T*newI;

I checked the dimension, both are 8*8 matrices.

Please help me out in this.Thank you in advance