Filter löschen
Filter löschen

increase range of the 3d plot

1 Ansicht (letzte 30 Tage)
Hassan Bosha
Hassan Bosha am 5 Apr. 2020
Beantwortet: Ameer Hamza am 5 Apr. 2020
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')

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 5 Apr. 2020
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

Weitere Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by