Advertisement
FelipeNeto2

Matlab backup 3

Apr 1st, 2024 (edited)
1,538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.60 KB | None | 0 0
  1. %%
  2.  
  3. clear;
  4. clc;
  5.  
  6. format long
  7.  
  8. %% Solucoes numericas
  9.  
  10. pasta = 'simulacoes/Linear';
  11.  
  12. x = load([pasta '/espaco.dat']);
  13. t = load([pasta '/tempo.dat']);
  14.  
  15. fileIter = load([pasta '/Iteracoes.dat']);
  16.  
  17. nx = length(x);
  18. nt = length(t);
  19. nIter = length(fileIter);
  20.  
  21. %iter = reshape(fileIter, [nt, nIter]);
  22.  
  23. t1 = 10; t2 = 20; t3 = 50; t4 = 80;
  24.  
  25. %%
  26. plot(t, fileIter);
  27. legend(['Numérica t = ', num2str(t(t1), '%5.2f')],'Location','best','FontSize',12);
  28. xlabel('$X$','interpreter','latex','FontSize',14)
  29. ylabel(' $S_{w} \hspace{0.5cm}$','rot',0,...
  30.     'interpreter','latex','FontSize',18);
  31. grid on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement