Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Code request

Name: Anonymous 2012-05-06 11:19

I'm in my first year informatics. I need to make a program in scilab for maths that solves nonograms.

but I have 1 piece of code that always gives an invalid index error and I have been looking for it the whole time but cannot seem to fix the error. Could you guys plz look at it and solve the problem? I would be very grateful.

http://pastebin.com/jmH8YhX5

the invalid index error is supposed to be at line 9.

I have these weird code in my else statements because in scilab you always need to write an else function even if you do not want to use it.

Name: Anonymous 2012-05-06 11:53

| if o(i)(j) == z then
what's z equals to?

Name: Anonymous 2012-05-06 12:03


the Z = 0 used to make that part of the graph black
the W = 8 which is white
and x = 7 which is yellow to make clear you do not yet know if it is going to be black or white

but that is not the problem I think.

Name: Anonymous 2012-05-06 16:25

>>1
Your instructor wouldn't happen to be Jan Van Hee, would it?

Name: Anonymous 2012-05-06 16:36

http://www.catb.org/~esr/faqs/smart-questions.html

Scilab stores arrays in column-major form. That may or may not be the problem. There's no way to tell with the information you've provided.

Name: Anonymous 2012-05-06 18:34

>>1
I have these weird code in my else statements because in scilab you always need to write an else function even if you do not want to use it.
No you don't. In fact, you have an if statement without an else clause right there in your crap.

Name: Anonymous 2012-05-06 23:00

>>4
ohfuck

Name: Anonymous 2012-05-07 3:54

Mario ausseloos

Name: !Xarn.u2ceE 2012-05-07 6:23

I wish I could say KHL students get worse every year, but this is pretty typical, to be honest.

Name: bampu pantsu 2012-05-29 4:48

bampu pantsu

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List