Biting Off More Than I Can Chew?

Another Scilab issue. I am more comfortable with programming in Scilab compared with C, so I use Scilab to see if I am getting the correct answer in my C script. After printing the data matrix from C, I paste it in my Scilab code and compare the data with the results obtained in my Scilab script.

Now pasting large data matrices can be a pain in the ass inside the Scipad editor, because the automatic coloring will just make Scipad as laggy as hell. I would use a normal text editor to past the data inside the Scilab script, and then use the Scipad editor only if I am ready to execute the script. Even so, it takes several seconds before I can start executing the script.

Here is a problem that I’ve never encountered before. Whenever the script reaches the line where I define my large matrix, it returns this error:

Inconsistent row/column dimensions.

What the hell happened here? Granted, I have a 150-by-501 data matrix, but it shouldn’t be a problem. Or is it? I was able to do the same trick a few years ago, with a larger matrix. Am I missing something?

Leave a Reply