Skip to main content
18-Opal
August 20, 2019
Solved

Foor Loop

  • August 20, 2019
  • 3 replies
  • 3815 views

Hi all.

 

Why am I seeing all the extra rows  of Zeros?

 

I just want to see 4 to 8

 

Thanks for the help.

 

 

 

 

 

 

 

 

Best answer by terryhendicott

Hi,

 

Indexes into matrices start at zero

3 replies

21-Topaz II
August 20, 2019

Hi,

 

What version are you using?

You need to include the file.

 

18-Opal
August 20, 2019

Attached now

25-Diamond I
August 20, 2019

We see neither zeros nor 4's or 8's!

Obviously you forgot to add a picture, or, preferably, your worksheet.

 

My crystal ball thinks that the reason for your problem is that you use a vector or matrix which was already defined before with a larger size or that for some reason an element with higher index was unintentionally assigned.

21-Topaz II
August 20, 2019

Hi,

 

Indexes into matrices start at zero

25-Diamond I
August 20, 2019

@terryhendicott wrote:

Hi,

 

Indexes into matrices start at zero


Not necessarily, as the picture below shows, but it sure would make more sense to leave the default ORIGIN=0 (or rather set it to 1, but sure not 4)

B.png