Gauss-Seidel Jacobi Radio espectral Valor de k Gauss-Seidel vs. Jacobi
Gauss-Seidel Jacobi Radio espectral Valor de k Gauss-Seidel vs. Jacobi k(0)=0.8; k(N)=14; %Límites de la simulación A=[1 2 3;3 k(i) 1;3 8 8*k(i)]; %Matriz de coeficientes (3x3) B=[2;6;2]; %Vector independiente (3x1)
Gauss-Seidel Jacobi Radio espectral Valor de k Gauss-Seidel vs. Jacobi k(0)=1; k(N)=7; %Límites de la simulación A=[1 2*k(i) 0.3 1;3 7*k(i) 1 1; k(i); *sin(k(i))*cos(k(i))];%Matriz de coeficientes (4x4) B=[2;6;2;1];%Vector independiente (4x1)
x = 100*rand(1,200); y = 20*sin(x*pi/100)+0.5*x+rand(1,200)*30; plot(x,y,'o') [P2,S2] = POLYFIT(x,y,2); t=0:0.1:100; p2=P2(1)*t.^2+P2(2)*t+P2(3); hold on plot(t,p2) Ajuste de puntos con POLYFIT Ajuste lineal y cuadrático