Advertisement
Guest User

task3.m

a guest
Nov 13th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.42 KB | None | 0 0
  1. function task3(file_u, file_ud, file_z, file_ro)
  2.     [x, u] = textread(file_u, "%f %f");
  3.     [x, ud] = textread(file_ud, "%f %f");
  4.     [s, z] = textread(file_z, "%f %f");
  5.     [alpha, ro] = textread(file_ro, "%f %f");
  6.     figure();
  7.     grid on;
  8.     hold on;
  9.     plot(x,u,'r');
  10.     plot(x,ud,'b');
  11.     figure();
  12.     grid on;
  13.     hold on;
  14.     plot(s,z);
  15.     figure();
  16.     grid on;
  17.     hold on;
  18.     plot(alpha,ro);
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement