[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## 3d plotting

**From**: |
Levente |

**Subject**: |
3d plotting |

**Date**: |
Fri, 13 Sep 2019 15:27:18 +0200 |

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 = dlmread (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