summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuraj Yerramilli2015-09-04 10:07:15 +0530
committerSuraj Yerramilli2015-09-04 10:07:15 +0530
commite7da35a333067e4bdad23e82e002e4c499afc3b6 (patch)
tree2175e0c1b4708c0f1ed14cc0fd5754802539ef3c
parent5533e586b622896ceb5dc4127998468fc630ffbc (diff)
downloadSysID-R-code-e7da35a333067e4bdad23e82e002e4c499afc3b6.tar.gz
SysID-R-code-e7da35a333067e4bdad23e82e002e4c499afc3b6.tar.bz2
SysID-R-code-e7da35a333067e4bdad23e82e002e4c499afc3b6.zip
Minor correction in plot idfrd
-rw-r--r--R/idframe.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/idframe.R b/R/idframe.R
index 5a0b338..42fea24 100644
--- a/R/idframe.R
+++ b/R/idframe.R
@@ -153,7 +153,7 @@ plot.idfrd <- function(x){
require(ggplot2);require(reshape2);require(signal)
mag <- 20*log10(Mod(x$resp))
- phase <- -360/2/pi*unwrap(Arg(x$resp))
+ phase <- unwrap(Arg(x$resp))
sys_df <- data.frame(Frequency = x$freq,Gain = mag,Phase = phase)
melted_sys_df <- melt(sys_df, id.var = c("Frequency"))