Hello,
I found a workaround using the polyfit function. Hope this helps others. Still trying to figure out how to extend the polyfit lines beyond the data points, will get there eventually.
% Curve Fitting for HS6-5-3 PM
[xData9, yData9, zData9] = prepareCurveData( Cycles_HS6_PM, SqRt_Area_HS6_PM, Tension_HS6_PM );
%Fit model to data.
y=0+zeros(42,1);
z = Tension_HS6_PM
p = polyfit(zData9, xData9,1);
x = polyval(p,z);
h=plot3(x,y,z)
h.Color = '#9475EB'; % Indigo
T = table(x,y,z,'VariableNames',{'X','Y','Z'})
%Fit model to data.
z=400+zeros(42,1);
x = Cycles_HS6_PM
p = polyfit(xData9, yData9,1);
y = polyval(p,x);
h=plot3(x,y,z)
h.Color = '#9475EB'; % Indigo
T = table(x,y,z,'VariableNames',{'X','Y','Z'})