WARNING: Plotting with an 'unknown' terminal. No output will be generated. Please select a terminal with 'set terminal'

前端 未结 4 1222
别跟我提以往
别跟我提以往 2021-02-05 21:31

i am following the great machine learning course given by Andrew Wu from Stanford. When I executed plot function in ex5 file, the octave cli command line reports the following w

4条回答
  •  我在风中等你
    2021-02-05 22:13

    1) Open up terminal and try running

    gnuplot
    

    2) In gnuplot, run the command

    set terminal
    

    This should list all your available terminal types.

    3) In octave, pick an available gnuplot terminal type and run setenv(). For example this could be

    setenv('GNUTERM','qt')
    setenv('GNUTERM','x11')
    

    Hope this helps someone!

提交回复
热议问题