Thread Subject:
??? Index exceeds matrix dimensions.

Subject: ??? Index exceeds matrix dimensions.

From: Neel D

Date: 21 Oct, 2010 01:13:04

Message: 1 of 3

When i try to create a zeros vector like
mat= zeros(7,1);
gives me the error
??? Index exceeds matrix dimensions.

Subject: ??? Index exceeds matrix dimensions.

From: Roger Stafford

Date: 21 Oct, 2010 01:27:03

Message: 2 of 3

"Neel D" <indraneel19@gmail.com> wrote in message <i9o430$b1b$1@fred.mathworks.com>...
> When i try to create a zeros vector like
> mat= zeros(7,1);
> gives me the error
> ??? Index exceeds matrix dimensions.
- - - - - - - - - -
  I susect that somewhere you have inadvertently named a variable "zeros". You should never use matlab function names or your own function names as the names of variables. This is the kind of trouble that leads to.

Roger Stafford

Subject: ??? Index exceeds matrix dimensions.

From: indraneel19

Date: 21 Oct, 2010 15:48:12

Message: 3 of 3

On Oct 20, 9:27 pm, "Roger Stafford"
<ellieandrogerxy...@mindspring.com.invalid> wrote:
> "Neel D" <indranee...@gmail.com> wrote in message <i9o430$b1...@fred.mathworks.com>...
> > When i try to create a zeros vector like
> > mat= zeros(7,1);
> > gives me the error
> > ??? Index exceeds matrix dimensions.
>
> - - - - - - - - - -
>   I susect that somewhere you have inadvertently named a variable "zeros".  You should never use matlab function names or your own function names as the names of variables.  This is the kind of trouble that leads to.
>
> Roger Stafford

\n Thanks

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
index exceeds matr... Neel D 20 Oct, 2010 21:14:05
rssFeed for this Thread

Contact us