Guest User

Untitled

a guest
Jan 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.37 KB | None | 0 0
  1. delete g060x32.txt; diary g060x32.txt
  2. clear; clc; close all; echo on;
  3.  
  4. R=input('Put in what you want for R  ');
  5.  
  6. C=input('Put in what you want for C  ');
  7.  
  8. syms w;
  9.  
  10. f=1/sqrt(1+(w*R*C)^2);
  11.  
  12. ezplot(f,[10^-2,10^6]);
  13.  
  14. set(gca, 'XScale', 'log');
  15. axis([10^-2,10^6,0,2]);
  16.  
  17. xlabel('Frequency (rad/s)');
  18.  
  19. ylabel('Voltage Ratio');
  20.  
  21.  
  22. title('stuff');
  23.  
  24. echo off; diary off;
Add Comment
Please, Sign In to add comment