
From:  Brett Green 
Subject:  Re: 3d plotting 
Date:  Fri, 13 Sep 2019 11:53:02 0400 
Dear all,
I'd like to plot a table that contains 3d data. The data in the table
is not square, i.e. the number of rows and columns are different.
I want the Z axis to represent the table values. However, when I start
my code, I get an error, that the length of X and Y and Z must be the
same.
Here is an outline of my data. The first row and the first column
shall correspond to X and Y axis.
file = '~/projects/Siemens_smartbox/Digital_input_cal/data_transp_1_1.csv'
#This is really a CSV file, but you have an idea how it looks like.
data = "" (file, ',')
x=meshgrid(data(1,2:28)')
y=meshgrid(data(2:7,1))
z=data(2:7,2:28)
plot3(x,y,z)
Is there any way to make octave to plot non rectangular shapes? Or
what I'm missing here?
Thanks for your help,
Levente
[Prev in Thread]  Current Thread  [Next in Thread] 