|
Contents | Previous | Next | Subchapters |
| Syntax |
tpdataset(variables) |
tpdataset(variables, I, J, K) | |
| See Also | tpaddzone , tpdims , tpopen |
tpdataset also creates a new zone with the specified dimensions.
If the argument I, J, and K are not
present, tpdataset does not create any zones and you must
call the tpaddzone
function before interacting with Tecplot
or transferring data from the O-Matrix client.
If the current frame contains a data set when you call tpdataset,
it is deleted.
tpdataset({"Depth","Pressure","Salinity"})
Tecplot will create a new data set that contains the 3 variables
Depth, Pressure, and Salinity.
Note that at this point the data set does not contain any zones. You
must create at least 1 zone in the data set before interacting with Tecplot.
If you continue the example above by entering,
tpaddzone(20, 1, 1, "Sample1")
tpaddzone(20, 1, 1, "Sample2")
O-Matrix will add 2 zones, Sample1, and Sample2,
both with I = 20, J = 1, and K = 1.
You can also create a zone at the time that a data set is created,
If you continue the example above by entering
tpframe("Oceans Two")
vars = {"Depth", "Conductivity", "Oxygen", "Temperature"}
tpdataset(vars, 100, 1, 1)
Tecplot will create a new frame named Oceans Two with a new
data set that contains one zone with the variables
Depth, Conductivity, Oxygen, and Temperature.