daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Oct 15th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. push 1
  2.  
  3. n=str2double(get(handles.edit1,'string'));
  4. FilasColumnasA=zeros(n,n)
  5. tablaeditable=true;
  6. set(handles.uitable1,'Data',FilasColumnasA,'ColumnEditable',tablaeditable);
  7.  
  8. FilasColumnasD=zeros(n,1)
  9. tablaeditable=true;
  10. set(handles.uitable2,'Data',FilasColumnasD,'ColumnEditable',tablaeditable);
  11.  
  12.  
  13.  
  14.  
  15. push 2
  16.  
  17. close(krilov);
  18.  
  19. push 3
  20.  
  21.  
  22. n=str2double(get(handles.edit1,'string'));
  23. A=get(handles.uitable1,'data');
  24. D=get(handles.uitable2,'data');
  25. V=D
  26. for i=1:n
  27.     if i==n
  28.         D=A*D;
  29.         B=-D
  30.     else
  31.         D=A*D;
  32.         V=[D V]
  33.     end
  34. end
  35. p=inv(V)*B;
  36. coef=[1 p']
  37. set(handles.edit2,'string',num2str(coef));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top