2013-03-28 71 views
0

當我在終端鍵入指令在gnuplot的

gnuplot>plot "cbr_delay" 

發生的錯誤,因爲系統顯示錯誤如下

  0.100000 0.038706 
^ 
"cbr_delay", line 1: invalid command 

文件cbr_delay示

0.100000 0.038706 
0.108000 0.038706 
0.116000 0.038706 
0.124000 0.038706 
0.132000 0.038706 
0.140000 0.038706 
0.148000 0.038706 
0.156000 0.038706 
0.164000 0.038706 
0.172000 0.038706 
0.180000 0.038706 
0.188000 0.038706 
0.196000 0.038706 
0.204000 0.038706 
0.212000 0.038706 
0.220000 0.038706 
0.228000 0.038706 
0.236000 0.038706 
0.244000 0.038706 
0.252000 0.038706 

我能做些什麼來避免錯誤?

回答

1

它看起來對我像你打字,在正是,你的shell解釋爲:

gnuplot cbr_delay > plot 

這意味着外殼是什麼gnuplot的要運行腳本的cbr_delay,並把標準輸出在稱爲「情節」的文件中流。您可以通過在當前目錄中查找名爲「plot」的文件來測試它。

你想要做的是第一個只需輸入gnuplot即可進入gnuplot提示符。然後你可以輸入你的gnuplot命令:

gnuplot #enter gnuplot 

#at this point, you should see a gnuplot prompt which looks like "gnuplot>" 
#now enter your gnuplot command 
plot "cbr_delay" 
+0

很好的調用!那是一場戰鬥...... – agentp 2013-03-28 16:33:09

+0

@george - 是的,它讓我困惑了幾分鐘。 – mgilson 2013-03-29 01:19:41

+0

非常感謝你! – yefeng 2013-10-18 08:10:07