help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help request


From: a89ur345
Subject: help request
Date: Sat, 27 Sep 2008 12:57:49 -0700 (PDT)

Hello,

I am trying to write Octave code that will take a user supplied .csv file consisting of X rows by 3 columns. The first column is the initial value, the second is the increment amount (by addition to initial value), and the third column is the final value. The increment value can be either pos or neg, integer or decimal value, and the total times a first column variable is incremented can differ between each. This data will then be written to another .csv file with other calculations completed on this data later.

The goal is to create a matrix that creates all possible combinations of all the first column variables by taking each variable and creating a combination with the other X first column variables but also incrementing each one individually and then creating those combinations.

Since I don't know ahead of time how many times each individual first column variable will be incremented I run into mis-match of range errors and not capturing all possible combinations.  I have also tried using ndgrid function along with nested do while loops/ for loops and encounter same errors.

I am using Octave ver 3.0.1

Any help would be greatly appreciated.
Thanks




reply via email to

[Prev in Thread] Current Thread [Next in Thread]