jbjares2

Untitled

Feb 12th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1.  
  2. ##v_phase
  3. plotVPhase <- function(){
  4. csvLoc <- paste0(getwd(),"/v_phase_.csv")
  5. v_phase <- read.csv(csvLoc,header = FALSE, sep = ",")
  6. View(v_phase)
  7. plot(v_phase$V1,v_phase$V2,type="l")
  8.  
  9. }
  10.  
  11. plotMagn <- function(){
  12. csvLoc <- paste0(getwd(),"/v_magn_.csv")
  13. v_magn <- read.csv(csvLoc,header = FALSE, sep = ",")
  14. View(v_magn)
  15. plot(v_magn$V1,v_magn$V2)
  16. lines(v_magn$V1,v_magn$V2,type="l")
  17.  
  18. }
  19.  
  20. plotPReal <- function(){
  21. csvLoc <- paste0(getwd(),"/p_real_.csv")
  22. p_real <- read.csv(csvLoc,header = FALSE, sep = ",")
  23. View(p_real)
  24. plot(p_real$V1,p_real$V2,type="l")
  25.  
  26. }
  27.  
  28. plotPImag <- function(){
  29. csvLoc <- paste0(getwd(),"/p_imag_.csv")
  30. p_imag <- read.csv(csvLoc,header = FALSE, sep = ",")
  31. View(p_imag)
  32. plot(p_imag$V1,p_imag$V2,type="l")
  33.  
  34. }
  35.  
  36. plotDCenterLine <- function(){
  37. csvLoc <- paste0(getwd(),"/d_centerline_.csv")
  38. d_centerline <- read.csv(csvLoc,header = FALSE, sep = ",")
  39. View(d_centerline)
  40. plot(d_centerline$V1,d_centerline$V2,type="l")
  41.  
  42. }
  43.  
  44. main <- function(){
  45. plotVPhase()
  46. plotMagn()
  47. plotPReal()
  48. plotPImag()
  49. plotDCenterLine()
  50. }
  51.  
  52.  
  53. main()
Advertisement
Add Comment
Please, Sign In to add comment