How do I plot confidence intervals in MATLAB? -
I want to plot some confidence interval graph in MATLAB but I do not have it at all how to do it. I have data in a .xls file.
Does anyone signify me, or do anybody know the commands for the conspiracy of CI?
I do not believe what you call the confidence interval graph, but it's a normal distribution - An example of how to plot 95% of the CI:
alpha = 0.05; % Importance level mu = 10; % Means sigma = 2; % Std cutoff1 = norminv (alpha, mu, sigma); Cutoff2 = norminv (1-alpha, mu, sigma); X = [linspace (mu-4 * sigma, cutoff 1), ... lynxpace (cutoff 1, cutoff 2), ... linuxpace (cutoff 2, mu + 4 * sigma)]; Y = normpdf (x, mu, sigma); Plot (X, Y) XO = [X (Lieutenant; = Cutoff 1) Cutoff 1]; Ylo = [y (x & lt; = cutoff1) 0]; Patches (Axlo, Yellow, 'B') xhi = [Cutoff 2 X (X> = Cutoff 2)]; Yi = [0 y (x> = cutoff2)]; Patches (xhi, yhi, 'b')