Create confidence interval for linear regression line
이전 댓글 표시
Hi, how can I plot a confidence interval bound for the regresison line using lsline? The code I wrote is this:
clc, clear all, close all
X(:,1) = (1:1:100);
X(:,2) = rand(100,1);
figure;
hold on
plot(X(:,1),X(:,2),'b*','MarkerSize',5);
h = lsline;
set(h,'color','g','LineWidth',3)
%s = lsline + 0.95 * h;
title 'TRY';
xlabel 'X';
ylabel 'Y';
hold off
Thank you
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Support Vector Machine Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!