- To plot a set of coordinates connected by line segments, specify X, Y, and Z as vectors of the same length.
- To plot multiple sets of coordinates on the same set of axes, specify at least one of X, Y, or Z as a matrix and the others as vectors.
Realize a 3d line plot
1 view (last 30 days)
i need to realize a 3d plot for displaying 3 connected quantities.
psl(i,j)=(70*(W_end_t(i)/Sr(i))*K1(i,j)*K2(i)*K3*acg(i))*1000;%N/m^2 RES22 (61)
where L_end has length(i_ed) elements. For better understanding the problem, x/L_end varies between very small values to 1. My goal it is to graph in the same 3d plot many curves as L_end length.
Thank you for the help!
Cris LaPierre on 20 May 2021
You must be getting an error message. What does it say (all the red text)?
Check that your inputs are what plot3 expects.
In your case, it appears X and Y are vectors. Are they the same length?
Z appears to be a matrix. Do the number of rows match the lengths of X and Y?