2009年7月18日 星期六

PS generation + MATLAB coneplot

作者: hantis (呢呢是豬) 看板: Hantis
標題: [隨寫] Technical Notes
時間: Sat Jul 18 12:56:19 2009


   1. How to generate PS figures from PDF documents.

   打開PDF檔,圈選要的影像,右鍵列印
   選WMF2EPS Color PS L2
   頁面縮放:符合可列印區域
   下面「自動旋轉並置中」的都不要勾
   縮小圖看起來會大大的空白但沒關係
   確定之後填入路徑+檔名.ps即可

   2. MATLAB: How to use coneplot for a 2D array.

   h = coneplot(X,Y,Z,Vx,Vy,Vz,s,'nointerp');
   s是scaling factor
   再去調cone的細部調整即可
   重點是後面的'nointerp'
   Z不一定是要平的

   加了'nointerp'之後 2D array 1D array都可以用
   例如 x = 1:5; y = 1; z = 0;
   [X,Y,Z] = meshgrid(x,y,z);
   coneplot(X,Y,Z,Vx,Vy,Vz,s,'nointerp')
   也不會有問題
   當然Vx,Vy,Vz的dimension要跟X,Y,Z一樣
   此外
   x,y,z都不需要monotonically increasing

   其實加了'nointerp'
   語法就跟quiver3一樣了
   XYZ直接放vector都沒關係

沒有留言:

張貼留言