AXIS EQUAL コマンドで X, Y 軸を調整し、Z 軸だけを AUTO に調整させることができますか?
    13 views (last 30 days)
  
       Show older comments
    
    MathWorks Support Team
    
 on 25 Oct 2013
  
    
    
    
    
    Answered: MathWorks Support Team
    
 on 25 Oct 2013
            BAR3 関数を使って画像データの 3 次元表示をしていますが、AXIS EQUAL で X, Y 軸を調整し、Z 軸だけを AUTO に調整させる方法を教えてください。
Accepted Answer
  MathWorks Support Team
    
 on 25 Oct 2013
        "DataAspectRatio" という座標軸のプロパティを設定すれば、AXIS EQUAL で調整したグラフのZ軸のみを調整することが可能です。下記のサンプルプログラムをご参考ください。
- サンプルプログラム:
Z=rand(3,3)*0.01;
figure,bar3(Z)
pause(2)
axis equal
pause(2)
set(gca,'DataAspectRatio',[1 1 0.01])
pause(2)
set(gca,'DataAspectRatio',[1 1 0.005])
0 Comments
More Answers (0)
See Also
Categories
				Find more on 対話型コントロールとコールバック in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!