Hi Federico,
I understand that you are trying to plot a graph with three vectors x,y and z with different lengths. As far as I know, the usage of the ‘plot’ function or ‘surf’ function is not supported when you have vectors with differing lengths.
I can suggest two possible workarounds for this:
- If your data is consistent and you know where some data for a variable is missing, try using interpolation functions (‘interp1’ or ‘interp2’ as per your requirement) which would help you to fill in the missing values and make the vectors to be of equal length.
- Fill the missing data points with ‘NaN’ to make the vectors of equal length and then plot it.
I hope this workaround helps.