cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Foor Loop

SOLVED
Highlighted
Amethyst

Foor Loop

Hi all.

 

Why am I seeing all the extra rows  of Zeros?

 

I just want to see 4 to 8

 

Thanks for the help.

 

 

 

 

 

 

 

 

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Foor Loop

Hi,

 

Indexes into matrices start at zero

9 REPLIES 9

Re: Foor Loop

Hi,

 

What version are you using?

You need to include the file.

 

Re: Foor Loop

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.

Re: Foor Loop

Attached now

Re: Foor Loop

Attached

Re: Foor Loop

Hi,

 

Indexes into matrices start at zero

Re: Foor Loop


@muser wrote:

Attached


No, still not.

Whats going on?

Do you try to attach a worksheet or a picture?

Re: Foor Loop

Work sheet. When I do a picture it says 20 000 words exceeded.

Re: Foor Loop


@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

Re: Foor Loop


@muser wrote:

Work sheet. When I do a picture it says 20 000 words exceeded.


You can't simply copy and paste a picture here, you have to use the "Photos" icon to embed a picture in a post or you may add it like you did with the worksheet.

 

BTW, I would rather use

B2.png