Created
November 10, 2015 08:15
-
-
Save notcome/c4dfd2a7a2151172b8af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% http://www.tutorialspoint.com/execute_matlab_online.php | |
n = 8; | |
N = zeros(n+1); | |
c = linspace(1,n+1,n+1); | |
for i=1:n+1 | |
for j=1:n+1 | |
N(i,j)= ((j-1)/n)^(i-1); | |
end | |
c(i)=1/c(i); | |
end | |
b = c'; | |
d=linsolve(N,b); | |
disp(N); | |
disp hello; | |
disp(b); | |
disp hello; | |
disp(d); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment