A = load("Spline_Dots.txt");
B = load("Spline_Graph.txt");
figure();
hold on;
ax=gca();
plot(A(:,1),A(:,2),'pr');
plot(B(:,1),B(:,2),'-b');
plot(B(:,1),B(:,3),'-g');
set(ax, 'fontsize', 15);
xlabel("X");
ylabel("Y");
legend("Given points", "Function", "Spline");
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.