increase range of the 3d plot

4 次查看(过去 30 天)
i'm trying to draw 2 matrices using trplot()
but it shows only on matrix as the range of the 3d plot is suited for the range of the first matrix
A = eye(4);
U = [ 0.866 -0.5 0 11 ; 0.5 0.866 0 -1 ; 0 0 1 9 ; 0 0 0 1];
trplot(U,'color','r')
hold on
trplot(A,'color','g')

采纳的回答

Ameer Hamza
Ameer Hamza 2020-4-5
You need to use view(3)
A = eye(4);
U = [ 0.866 -0.5 0 11 ; 0.5 0.866 0 -1 ; 0 0 1 9 ; 0 0 0 1];
ax = axes();
view(3);
hold on
trplot(U,'color','r')
trplot(A,'color','g')
% daspect([1 1 1]); % optional

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by