SplineCloud client library for MATLAB
clear variables; clear all; clc;
addpath(genpath('splinecloud-matlab'));
curveId = 'spl_BUDRcYh1Mbvy';
spline = fetchCurve(curveId);
[ctrlPoints, knots] = extractNurbsParams(spline);
nurbs = nrbmak(ctrlPoints, knots);
xPoints = linspace(0, 5, 100);
xLength = length(xPoints);
yPoints = zeros(1, xLength);
for i = 1:xLength
yPoints(i) = getYByX(nurbs, xPoints(i));
end
plot(xPoints, yPoints);