windows 64位下 Octave 不能畫圖的解決辦法

來源:互聯網
上載者:User

標籤:highlight   令行   logs   graphics   映像   結果   src   octave   切換   

如果不能畫圖,可能需要更改圖形工具包。

1、首先,查看當前的工具包。在Octave命令列中鍵入 graphics_toolkit,結果如下:

                                       >> graphics_toolkit
                                       ans = qt

2、如果是上面情況,您的繪圖視窗會凍結,需要將預設工具包切換為gnuplot,在Octave命令列中鍵入graphics_toolkit(‘gnuplot‘)

並再次查看當前的繪圖工具包,已經更改為 gnuplot。結果如下:

                                        >> graphics_toolkit(‘gnuplot‘)
                                        >> graphics_toolkit
                                        ans = gnuplot

3、繪圖。輸入以下代碼,就可以畫出漂亮的三維圖了。

                      代碼:           >> n=50;
                                        >> x=y=linspace(-8,8,n)‘;
                                        >> [xx,yy]=meshgrid(x,y);
                                        >> r=sqrt(xx .^2+yy .^2)+eps;
                                        >> c=5*sin(r) ./r;
                                        >> h=surf(xx,yy,c,c);

                       對應映像:

                                       

 

windows 64位下 Octave 不能畫圖的解決辦法

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.