Re: Function '*' not defined for variables of class 'int16'.
- From: Steve Eddins <Steve.Eddins@xxxxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 16:27:59 -0400
Dan Hensley wrote:
On Mon, 30 Apr 2007 11:29:49 -0400, kimskams80 wrote:
I have define a Matrix of 8430X8430 of int16 (same problem occur for
int8)
When I multiply this matrix with a vector ,it gives error
Function '*' not defined for variables of class 'int16'.
As the error states, Mathworks does not supply a method that allows you to matrix multiply int16 (or int8) variables. If you want to multiply them you'll need to cast them to different data types, say double.
This is a limitation of Matlab that would be really nice if Mathworks would work on fairly quickly. Integer datatypes have been around for a while now, but we are still quite limited in what we can do with them.
Dan,
To my knowledge there's been relatively little demand for matrix multiplication (as opposed to elementwise multiplication, which is supported) directly on the integer types.
---
Steve Eddins
http://blogs.mathworks.com/steve
.
- References:
- Function '*' not defined for variables of class 'int16'.
- From: kimskams80
- Re: Function '*' not defined for variables of class 'int16'.
- From: Dan Hensley
- Function '*' not defined for variables of class 'int16'.
- Prev by Date: reg: view VRML figures
- Next by Date: Re: test of normality with considering frequencies
- Previous by thread: Re: Function '*' not defined for variables of class 'int16'.
- Next by thread: questions on the integration with quad
- Index(es):
Relevant Pages
|